We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48686ac commit cd58781Copy full SHA for cd58781
api/provenance/provenance.go
@@ -67,18 +67,24 @@ func GetProvenance() Provenance {
67
68
for _, dep := range info.Deps {
69
if dep != nil && dep.Path == "sigs.k8s.io/kustomize/kustomize/v5" {
70
- if dep.Version != "devel" {
+ if dep.Version == developmentVersion {
71
continue
72
}
73
v, err := GetMostRecentTag(*dep)
74
if err != nil {
75
fmt.Printf("failed to get most recent tag for %s: %v\n", dep.Path, err)
76
- continue
+ break
77
78
p.Version = v
79
+
80
+ return p
81
82
83
84
+ if info.Main.Version != "" && p.Version == developmentVersion {
85
+ p.Version = info.Main.Version
86
+ }
87
88
return p
89
90
0 commit comments