zlint: exclude packages (#423980)
This commit is contained in:
commit
2c1d84733e
@ -3,7 +3,6 @@
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
testers,
|
||||
zlint,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
@ -21,13 +20,11 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
vendorHash = "sha256-AdJxcJ/qjY6lzoK4PGNjR+7lYAypgCOk6Nt5sqP+ayA=";
|
||||
|
||||
postPatch = ''
|
||||
# Remove a package which is not declared in go.mod.
|
||||
rm -rf v3/cmd/genTestCerts
|
||||
rm -rf v3/cmd/gen_test_crl
|
||||
'';
|
||||
|
||||
excludedPackages = [ "lints" ];
|
||||
excludedPackages = [
|
||||
"cmd/genTestCerts"
|
||||
"cmd/gen_test_crl"
|
||||
"lints"
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
@ -36,8 +33,7 @@ buildGoModule (finalAttrs: {
|
||||
];
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = zlint;
|
||||
command = "zlint -version";
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user