kubernetes-controller-tools: 0.16.1 -> 0.16.3 (#342562)
This commit is contained in:
commit
9bd16b83d0
@ -2,18 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "controller-tools";
|
||||
version = "0.16.2";
|
||||
version = "0.16.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kubernetes-sigs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-f12p9d6c3dXOOSnR//bIAs6wB9359GEeN9P1Lfb1/0Y=";
|
||||
sha256 = "sha256-Txvzp8OcRTDCAB8nFrqj93X+Kk/sNPSSLOI07J3DwcM=";
|
||||
};
|
||||
|
||||
patches = [ ./version.patch ];
|
||||
|
||||
vendorHash = "sha256-3p9K08WMqDRHHa9116//3lFeaMtRaipD4LyisaKWV7I=";
|
||||
vendorHash = "sha256-nwzXlsSG7JF145bf/AJZB1GbGJRHJC7Q73Jty6mHc/w=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
|
@ -1,23 +0,0 @@
|
||||
diff --git a/pkg/version/version.go b/pkg/version/version.go
|
||||
index 09c8efcf..b9ec798a 100644
|
||||
--- a/pkg/version/version.go
|
||||
+++ b/pkg/version/version.go
|
||||
@@ -20,14 +20,12 @@ import (
|
||||
"runtime/debug"
|
||||
)
|
||||
|
||||
+var version string
|
||||
+
|
||||
// Version returns the version of the main module
|
||||
func Version() string {
|
||||
- info, ok := debug.ReadBuildInfo()
|
||||
- if !ok || info == nil || info.Main.Version == "" {
|
||||
- // binary has not been built with module support or doesn't contain a version.
|
||||
- return "(unknown)"
|
||||
- }
|
||||
- return info.Main.Version
|
||||
+ _ = debug.ReadBuildInfo
|
||||
+ return version
|
||||
}
|
||||
|
||||
// Print prints the main module version on stdout.
|
Loading…
Reference in New Issue
Block a user