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

Using runtime/debug for git version details #305

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

sudo-bmitch
Copy link
Contributor

@sudo-bmitch sudo-bmitch commented Sep 21, 2022

Signed-off-by: Brandon Mitchell git@bmitch.net

Fixes issue

Fixes #304

Describe the change

This removes the embed/version.json and associated calls, replacing with runtime/debug calls.

How to verify it

$ regctl version 
VCSRef:     89bfc2db3b9eca816c970af951b0a5db7a7f7d3f     
VCSCommit:  89bfc2db3b9eca816c970af951b0a5db7a7f7d3f  
VCSState:   clean                               
VCSDate:    2022-09-21T00:10:00Z   
Platform:   linux/amd64                       
GoVer:      go1.19                                
GoCompiler: gc    

Changelog text

Breaking: tag details are no longer available in version commands.
Breaking: regclient.VCSRef and VCSTag variables removed.
Breaking: detailed version support removed for Go 1.17 and earlier.

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

This removes the embed/version.json and associated calls.
Breaking: tag details are no longer available.
Breaking: regclient.VCSRef and VCSTag variables removed.
Breaking: detailed version support removed for Go 1.17 and earlier.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
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.

[Feature] replace version command with provided via kubernetes-sigs/release-utils
1 participant