From d010165f0854cf812a9ceb9403f8247130a1858e Mon Sep 17 00:00:00 2001 From: "Matthew \"strager\" Glazar" Date: Sun, 25 Feb 2024 01:10:35 -0500 Subject: [PATCH] fix(arch): disable failing lint checks --- dist/arch/lint.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dist/arch/lint.sh b/dist/arch/lint.sh index 839a5d6963..e394e746e4 100755 --- a/dist/arch/lint.sh +++ b/dist/arch/lint.sh @@ -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