zlint: exclude packages

This commit is contained in:
Aaron Jheng 2025-07-10 16:04:20 +08:00
parent 87648dedcc
commit fcc4b9c07c
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

View File

@ -3,7 +3,6 @@
buildGoModule, buildGoModule,
fetchFromGitHub, fetchFromGitHub,
testers, testers,
zlint,
}: }:
buildGoModule (finalAttrs: { buildGoModule (finalAttrs: {
@ -21,13 +20,11 @@ buildGoModule (finalAttrs: {
vendorHash = "sha256-AdJxcJ/qjY6lzoK4PGNjR+7lYAypgCOk6Nt5sqP+ayA="; vendorHash = "sha256-AdJxcJ/qjY6lzoK4PGNjR+7lYAypgCOk6Nt5sqP+ayA=";
postPatch = '' excludedPackages = [
# Remove a package which is not declared in go.mod. "cmd/genTestCerts"
rm -rf v3/cmd/genTestCerts "cmd/gen_test_crl"
rm -rf v3/cmd/gen_test_crl "lints"
''; ];
excludedPackages = [ "lints" ];
ldflags = [ ldflags = [
"-s" "-s"
@ -36,8 +33,7 @@ buildGoModule (finalAttrs: {
]; ];
passthru.tests.version = testers.testVersion { passthru.tests.version = testers.testVersion {
package = zlint; package = finalAttrs.finalPackage;
command = "zlint -version";
}; };
meta = { meta = {