-
Notifications
You must be signed in to change notification settings - Fork 10
Better (and automatic) version info embedding #97
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestgoPull requests that update Go codePull requests that update Go codepriority:mediumMedium priority: Mostly for next minorMedium priority: Mostly for next minor
Milestone
Description
We currently rely on changing essentially doc.go to display the production version and compare with the latest version from GitHub to look for updates:
Lines 5 to 10 in 6dec3df
| // The version and codename of the system. | |
| // We typically pick an anime JK name as the codename for every minor version. | |
| const ( | |
| Version = "0.7.4" | |
| Codename = "Maaya Awatsuki" | |
| ) |
This requires a manual commit for every release (as I have forgotten to do in 0.7.5). Let's look for a way to automate this.
Perhaps something like debug.BuildInfo or https://github.com/docker/metadata-action (to extract and inject metadata during CI builds) would help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestgoPull requests that update Go codePull requests that update Go codepriority:mediumMedium priority: Mostly for next minorMedium priority: Mostly for next minor