File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ GOOS=linux
85
85
PACKAGE =sigs.k8s.io/node-feature-discovery-operator
86
86
MAIN_PACKAGE =main.go
87
87
BIN =node-feature-discovery-operator
88
- LDFLAGS = -ldflags "-s -w -X sigs.k8s.io/node-feature-discovery-operator/pkg/version .version=$(VERSION ) "
88
+ LDFLAGS = -ldflags "-s -w -X main .version=$(VERSION ) "
89
89
90
90
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
91
91
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ import (
40
40
"sigs.k8s.io/node-feature-discovery-operator/internal/deployment"
41
41
"sigs.k8s.io/node-feature-discovery-operator/internal/job"
42
42
"sigs.k8s.io/node-feature-discovery-operator/internal/status"
43
- "sigs.k8s.io/node-feature-discovery-operator/pkg/version"
44
43
// +kubebuilder:scaffold:imports
45
44
)
46
45
47
46
var (
48
47
// scheme holds a new scheme for the operator
49
- scheme = runtime .NewScheme ()
48
+ scheme = runtime .NewScheme ()
49
+ version = "undefined"
50
50
)
51
51
52
52
const (
@@ -92,7 +92,7 @@ func main() {
92
92
}
93
93
94
94
if * printVersion {
95
- fmt .Println (ProgramName , version . Get () )
95
+ fmt .Println (ProgramName , version )
96
96
os .Exit (0 )
97
97
}
98
98
You can’t perform that action at this time.
0 commit comments