From dfe919cd8e902a0c1002e7ab0328254fba9c2da6 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Wed, 12 Oct 2022 18:49:51 +0200 Subject: [PATCH] ko: 0.11.2 -> 0.12.0 - updates the github repository (org moved from google to ko-build) - updates precheck to make sure tests passes Signed-off-by: Vincent Demeester --- pkgs/development/tools/ko/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/ko/default.nix b/pkgs/development/tools/ko/default.nix index f7add96fbad9..490ea3241049 100644 --- a/pkgs/development/tools/ko/default.nix +++ b/pkgs/development/tools/ko/default.nix @@ -7,13 +7,13 @@ buildGoModule rec { pname = "ko"; - version = "0.11.2"; + version = "0.12.0"; src = fetchFromGitHub { - owner = "google"; + owner = "ko-build"; repo = pname; rev = "v${version}"; - sha256 = "sha256-BwK49dSt3D2BrYvluDOBYIH5qEt59HC1hssHl1D2Heg="; + sha256 = "sha256-hhPV40e5wB2/VcdigqgjffDW4X1ZDddXTZiCUBijtHQ="; }; vendorSha256 = null; @@ -36,6 +36,10 @@ buildGoModule rec { # resolves some complaints from ko export GOROOT="$(go env GOROOT)" git init + + # ko tests will fail if any of those env are set, as ko tries + # to make sure it can build and target multiple GOOS/GOARCH + unset GOOS GOARCH GOARM ''; postInstall = '' @@ -46,8 +50,8 @@ buildGoModule rec { ''; meta = with lib; { - homepage = "https://github.com/google/ko"; - changelog = "https://github.com/google/ko/releases/tag/v${version}"; + homepage = "https://github.com/ko-build/ko"; + changelog = "https://github.com/ko-build/ko/releases/tag/v${version}"; description = "Build and deploy Go applications on Kubernetes"; longDescription = '' ko is a simple, fast container image builder for Go applications. @@ -56,6 +60,6 @@ buildGoModule rec { ko also includes support for simple YAML templating which makes it a powerful tool for Kubernetes applications. ''; license = licenses.asl20; - maintainers = with maintainers; [ nickcao jk ]; + maintainers = with maintainers; [ nickcao jk vdemeester ]; }; }