A default version is hard-coded. This is done for people that use the Golang
toolchain to install the wallet (i.e. go install
).
This requires additional steps during the release process.
- Set the
defaultVersion
variable to the desired version in theversion/version.go
file. - Commit the change right before the tagging.
- Tag and release with the exact same name set on
defaultVersion
variable. - Right after the release, push a new commit to set the version to a next
development version. A development version is suffixed by
+dev
.
For example, let's say we are releasing the version v0.9.0
:
- The
defaultVersion
should be set tov0.9.0
. - The tag should be
v0.9.0
. - The next development version should be
v0.10.0+dev
.
For pre-release, let's say we are pre-releasing the version v0.9.0-pre1
:
- The
defaultVersion
should be set tov0.9.0-pre1
. - The tag should be
v0.9.0-pre1
. - The next development version should be
v0.9.0-pre2+dev
.