-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi: update version string system and build metadata
- Loading branch information
1 parent
105d3e7
commit 83ccb74
Showing
15 changed files
with
672 additions
and
300 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,49 @@ | ||
// This code is available on the terms of the project LICENSE.md file, | ||
// also available online at https://blueoakcouncil.org/license/1.0.0. | ||
|
||
package main | ||
|
||
import ( | ||
"decred.org/dcrdex/dex/version" | ||
) | ||
|
||
const ( | ||
// appName defines the application name. | ||
appName string = "dexc" | ||
) | ||
|
||
var ( | ||
// Note for maintainers: | ||
// | ||
// The expected process for setting the version in releases is as follows: | ||
// - Create a release branch of the form 'release-vMAJOR.MINOR' | ||
// - Modify the Version variable below on that branch to: | ||
// - Remove the pre-release portion | ||
// - Set the build metadata to 'release' | ||
// - Example: 'Version = "0.5.0+release"' | ||
// - Update the Version variable below on the master branch to the next | ||
// expected version while retaining a pre-release of 'pre' | ||
// | ||
// These steps ensure that building from source produces versions that are | ||
// distinct from reproducible builds that override the Version via linker | ||
// flags. | ||
|
||
// Version is the application version per the semantic versioning 2.0.0 spec | ||
// (https://semver.org/). | ||
// | ||
// It is defined as a variable so it can be overridden during the build | ||
// process with: | ||
// '-ldflags "-X main.Version=fullsemver"' | ||
// if needed. | ||
// | ||
// It MUST be a full semantic version per the semantic versioning spec or | ||
// the package will panic at runtime. Of particular note is the pre-release | ||
// and build metadata portions MUST only contain characters from | ||
// semanticAlphabet. | ||
// NOTE: The Version string is overridden on init. | ||
Version = "0.5.0-pre" | ||
) | ||
|
||
func init() { | ||
Version = version.Parse(Version) | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.