forked from radius-project/radius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: radius-project#37 Part of: radius-project#231 This change adds version info to our binary builds and our RP image.
- Loading branch information
Showing
4 changed files
with
47 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// ------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
// ------------------------------------------------------------ | ||
|
||
package version | ||
|
||
// Values for these are injected by the build. | ||
var ( | ||
release = "edge" | ||
version = "edge" | ||
commit = "unknown" | ||
) | ||
|
||
// Commit returns the full git SHA of the build. | ||
func Commit() string { | ||
return commit | ||
} | ||
|
||
// Release returns the semver release version of the build. | ||
func Release() string { | ||
return release | ||
} | ||
|
||
// Version returns the 'git describe' output of the build. | ||
func Version() string { | ||
return version | ||
} |