ko: 0.8.3 -> 0.9.3

Co-authored-by: NickCao <nickcao@nichi.co>
This commit is contained in:
06kellyjac 2021-09-30 10:40:16 +01:00
parent 937e936484
commit 6703f159a7

View file

@ -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