You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to create a Debian package for "k8s.io/cli-runtime", I get the following output:
# dh-make-golang make -git_revision v0.31.3 -type l k8s.io/cli-runtime
2024/11/26 14:33:52 Starting "dh-make-golang v0.7.0 linux/amd64"
2024/11/26 14:33:52 Downloading "k8s.io/cli-runtime/..."
2024/11/26 14:33:54 Determining upstream version number
2024/11/26 14:33:54 Found latest tag "kubernetes-1.31.3"
2024/11/26 14:33:54 WARNING: Latest tag "kubernetes-1.31.3" is not a valid SemVer version
2024/11/26 14:33:54 Latest tag "kubernetes-1.31.3" matches master
2024/11/26 14:33:54 Package version is "1.31.3"
When I check the upstream repo "k8s.io/cli-runtime", I observe that both tags `kubernetes-1.31.3" and "v0.31.3" refers to the same commit:
I assume the behavior of "dh-make-golang" is because
tag kubernetes-1.31.3 is created at a later time after v0.31.3 thus making it the latest tag before the HEAD.
"dh-make-golang" uses "git describe" which fetches the latest tag before the HEAD [1] which is checked out to the value specified by option "-git_revision" by "dh-make-golang" [2].
I would hope that, if the git revision specified by "-git_revision" is a valid tag, "dh-make-golang" should be using that tag without any additional heuristics because:
This, I think, would be more intuitive.
Otherwise, I would have to manually fix the package version in the templates generated by "dh-make-golang" in this particular case of packaging "v0.31.3" of "k8s.io/cli-runtime".
When I try to create a Debian package for "k8s.io/cli-runtime", I get the following output:
When I check the upstream repo "k8s.io/cli-runtime", I observe that both tags `kubernetes-1.31.3" and "v0.31.3" refers to the same commit:
I assume the behavior of "dh-make-golang" is because
kubernetes-1.31.3
is created at a later time afterv0.31.3
thus making it the latest tag before theHEAD
.HEAD
[1] which is checked out to the value specified by option "-git_revision" by "dh-make-golang" [2].I would hope that, if the git revision specified by "-git_revision" is a valid tag, "dh-make-golang" should be using that tag without any additional heuristics because:
Reference
[1]
dh-make-golang/version.go
Line 41 in d70d43c
[2]
dh-make-golang/make.go
Line 353 in d70d43c
dh-make-golang/make.go
Line 136 in d70d43c
The text was updated successfully, but these errors were encountered: