Skip to content

Commit

Permalink
fix(arch): disable failing lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Feb 25, 2024
1 parent 2e57766 commit d010165
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dist/arch/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,21 @@ cd "$(dirname "${0}")"
errors="$(mktemp)"
trap 'rm -f "${errors}"' EXIT

# HACK(strager): Disable the symlink check. The debug package
# references files in the main package
# (usr/lib/debug/.build-id/7d/de35aceb40462c945841b0d88b87fdfab87ea5
# points to ../../../../bin/quick-lint-js), but because namcap lints
# each package separately, namcap doesn't see the file from the main
# package when linting the debug package.
#
# HACK(strager): Disable the emptydir check. The debug package,
# created automatically with OPTIONS=(debug strip), has an empty
# directory (usr/src/debug/quick-lint-js-dev/quick-lint-js/build).
#
# HACK(strager): Disable the unusedsodepends check. With -Wl,--gc-sections, the
# check fails on libm. Even with -Wl,--as-needed, the linker keeps the NEEDED
# entry, so I don't know how to work around the libm dependency.
namcap --exclude=unusedsodepends PKGBUILD-dev PKGBUILD-git PKGBUILD-release ./quick-lint-js-*.pkg.tar.zst |& tee "${errors}"
namcap --exclude=emptydir,symlink,unusedsodepends PKGBUILD-dev PKGBUILD-git PKGBUILD-release ./quick-lint-js-*.pkg.tar.zst |& tee "${errors}"
if [ -s "${errors}" ]; then
printf 'error: namcap reported an error\n' >&2
exit 1
Expand Down

0 comments on commit d010165

Please sign in to comment.