From 1d55f6e65098847597270c8da0590bd2d7c080d1 Mon Sep 17 00:00:00 2001 From: Michael Vittrup Larsen Date: Sat, 15 Mar 2025 15:51:03 +0100 Subject: [PATCH] ko: 0.15.4 -> 0.17.1 --- pkgs/by-name/ko/ko/package.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ko/ko/package.nix b/pkgs/by-name/ko/ko/package.nix index 7a2b5d143b45..0ad274bba87b 100644 --- a/pkgs/by-name/ko/ko/package.nix +++ b/pkgs/by-name/ko/ko/package.nix @@ -9,22 +9,24 @@ buildGo123Module rec { pname = "ko"; - version = "0.15.4"; + version = "0.17.1"; src = fetchFromGitHub { owner = "ko-build"; repo = pname; tag = "v${version}"; - hash = "sha256-MeFoy2WoPsJIgUhpzt/4sEP6J9lM4nsSAK2VZiTS7jo="; + hash = "sha256-OQtYyokARrjaf0MWQ0sMqJPb+C5pRkKFumAmtxS4SBo="; }; - vendorHash = "sha256-n/NbbitSyjl05gESPVG3Uv2ek1U0Cd2fQqcxBhDKULU="; + vendorHash = "sha256-YQggwX6fUsfZMM+GdgeNAIHkfX84FMF84xHsP/SNiS4="; nativeBuildInputs = [ installShellFiles ]; # Pin so that we don't build the several other development tools subPackages = "."; + env.CGO_ENABLED = 0; + ldflags = [ "-s" "-w" @@ -32,8 +34,8 @@ buildGo123Module rec { ]; checkFlags = [ - # requires docker daemon - "-skip=TestNewPublisherCanPublish" + # requires docker daemon, pulls and builds delve debugger + "-skip=(TestNewPublisherCanPublish|TestDebugger)" ]; nativeCheckInputs = [ gitMinimal ]; @@ -64,13 +66,13 @@ buildGo123Module rec { meta = with lib; { 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"; + description = "Build and deploy Go applications"; mainProgram = "ko"; longDescription = '' ko is a simple, fast container image builder for Go applications. It's ideal for use cases where your image contains a single Go application without any/many dependencies on the OS base image (e.g. no cgo, no OS package dependencies). ko builds images by effectively executing go build on your local machine, and as such doesn't require docker to be installed. This can make it a good fit for lightweight CI/CD use cases. - ko also includes support for simple YAML templating which makes it a powerful tool for Kubernetes applications. + ko makes multi-platform builds easy, produces SBOMs by default, and includes support for simple YAML templating which makes it a powerful tool for Kubernetes applications. ''; license = licenses.asl20; maintainers = with maintainers; [