summary refs log tree commit diff
path: root/pkgs/development/tools/ko
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2021-09-30 10:40:16 +0100
committer06kellyjac <dev@j-k.io>2021-09-30 10:40:16 +0100
commit6703f159a79e066f751c66968becbe68f2c6bfc0 (patch)
tree46d52aaeed7549dfc89912ac784796490592a197 /pkgs/development/tools/ko
parent937e93648410d0d8212ce2f08a3689351cdbe165 (diff)
ko: 0.8.3 -> 0.9.3
Co-authored-by: NickCao <nickcao@nichi.co>
Diffstat (limited to 'pkgs/development/tools/ko')
-rw-r--r--pkgs/development/tools/ko/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/development/tools/ko/default.nix b/pkgs/development/tools/ko/default.nix
index 614b5d4c9df45..ab206a090bb12 100644
--- a/pkgs/development/tools/ko/default.nix
+++ b/pkgs/development/tools/ko/default.nix
@@ -7,23 +7,32 @@
 
 buildGoModule rec {
   pname = "ko";
-  version = "0.8.3";
+  version = "0.9.3";
 
   src = fetchFromGitHub {
     owner = "google";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-LoOXZY4uF7GSS3Dh/ozCsLJTxgmPmZZuEisJ4ShjCBc=";
+    sha256 = "sha256-cIrlhhk5Lt0Qt7q7rKw8EXrJqZWZEjrEUyHOvHiT6bs=";
   };
   vendorSha256 = null;
-  # Don't build the legacy main.go or test dir
-  excludedPackages = "\\(cmd/ko\\|test\\)";
+
   nativeBuildInputs = [ installShellFiles ];
 
+  # Pin so that we don't build the several other development tools
+  subPackages = ".";
+
   ldflags = [ "-s" "-w" "-X github.com/google/ko/pkg/commands.Version=${version}" ];
 
   checkInputs = [ git ];
   preCheck = ''
+    # Feed in all the tests for testing
+    # This is because subPackages above limits what is built to just what we
+    # want but also limits the tests
+    getGoDirs() {
+      go list ./...
+    }
+
     # resolves some complaints from ko
     export GOROOT="$(go env GOROOT)"
     git init