harbor-cli: 0.0.1 -> 0.0.2 (#361699)

This commit is contained in:
Aleksana
2024-12-08 14:29:47 +08:00
committed by GitHub
+10 -4
View File
@@ -10,16 +10,18 @@
buildGoModule rec {
pname = "harbor-cli";
version = "0.0.1";
version = "0.0.2";
src = fetchFromGitHub {
owner = "goharbor";
repo = "harbor-cli";
rev = "v${version}";
hash = "sha256-WSADuhr6p8N0Oh1xIG7yItM6t0EWUiAkzNbdKsSc4WA=";
hash = "sha256-baS4UHjmE2eURFMDBhXbx9lcKPArb2RH2NVDt3MPE4s=";
};
vendorHash = "sha256-UUD9/5+McR1t5oO4/6TSScT7hhSKM0OpBf94LVQG1Pw=";
vendorHash = "sha256-rw2VPRi0VTm7/zVnQ8zL5f4mbzYKnmuxgCbgrpcukaU=";
excludedPackages = [ "dagger" ];
nativeBuildInputs = [ installShellFiles ];
@@ -29,7 +31,11 @@ buildGoModule rec {
"-X github.com/goharbor/harbor-cli/cmd/harbor/internal/version.Version=${version}"
];
doCheck = false; # Network required
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
export HOME="$(mktemp -d)"
installShellCompletion --cmd harbor \
--bash <($out/bin/harbor completion bash) \
--fish <($out/bin/harbor completion fish) \
@@ -38,7 +44,7 @@ buildGoModule rec {
passthru.tests.version = testers.testVersion {
package = harbor-cli;
command = "harbor version";
command = "HOME=\"$(mktemp -d)\" harbor version";
};
meta = {