Merge pull request #260315 from twz123/update-k0sctl
k0sctl: 0.15.5 -> 0.16.0
This commit is contained in:
commit
3c6d278eb0
1 changed files with 11 additions and 7 deletions
|
@ -1,32 +1,35 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, buildGo121Module
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGo121Module rec {
|
||||
pname = "k0sctl";
|
||||
version = "0.15.5";
|
||||
version = "0.16.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "k0sproject";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ntjrk2OEIkAmNpf9Ag6HkSIOSA3NtO9hSJOBgvne4b0=";
|
||||
hash = "sha256-DUDvsF4NCFimpW9isqEhodieiJXwjhwhfXR2t/ho3kE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-JlaXQqDO/b1xe9NA2JtuB1DZZlphWu3Mo/Mf4lhmKNo=";
|
||||
vendorHash = "sha256-eJTVUSAcgE1AaOCEEc202sC0yIfMj30UoK/ObowJ9Zk=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/k0sproject/k0sctl/version.Environment=production"
|
||||
"-X github.com/carlmjohnson/versioninfo.Version=${version}"
|
||||
"-X github.com/carlmjohnson/versioninfo.Revision=${version}"
|
||||
"-X github.com/carlmjohnson/versioninfo.Version=v${version}" # Doesn't work currently: https://github.com/carlmjohnson/versioninfo/discussions/12
|
||||
"-X github.com/carlmjohnson/versioninfo.Revision=v${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# https://github.com/k0sproject/k0sctl/issues/569
|
||||
checkFlags = [ "-skip=^Test(Unmarshal|VersionDefaulting)/version_not_given$" ];
|
||||
|
||||
postInstall = ''
|
||||
for shell in bash zsh fish; do
|
||||
installShellCompletion --cmd ${pname} \
|
||||
|
@ -38,6 +41,7 @@ buildGoModule rec {
|
|||
description = "A bootstrapping and management tool for k0s clusters.";
|
||||
homepage = "https://k0sproject.io/";
|
||||
license = licenses.asl20;
|
||||
mainProgram = pname;
|
||||
maintainers = with maintainers; [ nickcao qjoly ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue