forked from AliyunContainerService/pouch
-
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.
build: generate version information at build time
auto-generate git commit, build time at build time, fix go-version hard code. Signed-off-by: Ace-Tang <[email protected]>
- Loading branch information
Showing
5 changed files
with
22 additions
and
15 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
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,16 +1,16 @@ | ||
package version | ||
|
||
// Version represents the version of pouchd. | ||
const Version = "0.4.0" | ||
// Version package values is auto-generated, the following values will be overwrited at build time. | ||
var ( | ||
// Version represents the version of pouchd. | ||
Version = "0.4.0" | ||
|
||
// BuildTime is the time when this binary of daemon is built | ||
var BuildTime = "unknown" | ||
// BuildTime is the time when pouch binary is built | ||
BuildTime = "unknown" | ||
|
||
// APIVersion means the api version daemon serves | ||
var APIVersion = "1.24" | ||
// APIVersion means the api version daemon serves | ||
APIVersion = "1.24" | ||
|
||
// GOVersion is the go version to build Pouch | ||
var GOVersion = "go1.9.1" | ||
|
||
// GitCommit is the commit id to build Pouch | ||
var GitCommit = "unknown" | ||
// GitCommit is the commit id to build Pouch | ||
GitCommit = "unknown" | ||
) |