Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/version: fulfill fields from debug/buildinfo #2444

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

AkihiroSuda
Copy link
Member

Fulfill version.Version and version.Revision from debug/buildinfo when the build info is available so that the version can be still printed when nerdctl is installed from go install.

The values from Makefile is still prioritized over debug/buildinfo values.

Fulfill `version.Version` and `version.Revision` from `debug/buildinfo`
when the build info is available so that the version can be still printed
when nerdctl is installed from `go install`.

The values from Makefile is still prioritized over `debug/buildinfo` values.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda added this to the v1.5.1 (tentative) milestone Aug 22, 2023
@AkihiroSuda AkihiroSuda requested a review from ktock August 22, 2023 10:22
@ktock ktock merged commit 3ee3540 into containerd:main Aug 22, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants