-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: assign version string using release-please and GoReleaser
- Loading branch information
Showing
4 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
package version | ||
|
||
// Version is set via compiler flags (see goreleaser config) | ||
var Version = "unknown" | ||
var ( | ||
// Version is the main version number that is being run at the moment. | ||
Version = "1.41.1" // x-release-please-version | ||
|
||
// Tag is A pre-release marker for the Version. If this is "" | ||
// (empty string) then it means that it is a final release. Otherwise, this | ||
// is a pre-release such as "dev" (in development), "beta", "rc1", etc. | ||
// | ||
// For releases, GoReleaser will automatically set this to an empty string. | ||
Tag = "dev" | ||
|
||
// FullVersion is the full version string, including the prerelease tag. | ||
// This is dynamically generated based on the Version and Tag variables. | ||
FullVersion = func() string { | ||
s := Version | ||
if Tag != "" { | ||
s += "-" + Tag | ||
} | ||
return s | ||
}() | ||
) |