-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix a bug in version linking
- Loading branch information
Showing
3 changed files
with
15 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changelog: | ||
- type: FIX | ||
description: Fix a bug in version linking which caused the version to be 'dev' on release. | ||
issueLink: https://github.com/solo-io/wasme/issues/158 |
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,6 +1,13 @@ | ||
package version | ||
|
||
var DevVersion = "dev" | ||
|
||
// This will be set by the linker on release builds | ||
var Version = DevVersion | ||
var ( | ||
Version string | ||
DevVersion = "dev" | ||
) | ||
|
||
func init() { | ||
if Version == "" { | ||
Version = DevVersion | ||
} | ||
} |