zlint: exclude packages
This commit is contained in:
parent
87648dedcc
commit
fcc4b9c07c
@ -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 = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user