mirror of
https://github.com/restic/restic.git
synced 2024-12-21 23:33:03 +00:00
helpers/prepare-release: write dev version to VERSION file
This commit is contained in:
parent
be98402ac6
commit
a0cac7fcd1
2 changed files with 6 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
0.16.5
|
0.16.5-dev
|
||||||
|
|
|
@ -323,6 +323,11 @@ func updateVersion() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateVersionDev() {
|
func updateVersionDev() {
|
||||||
|
err := os.WriteFile("VERSION", []byte(opts.Version+"-dev\n"), 0644)
|
||||||
|
if err != nil {
|
||||||
|
die("unable to write version to file: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
newVersion := fmt.Sprintf(`const version = "%s-dev (compiled manually)"`, opts.Version)
|
newVersion := fmt.Sprintf(`const version = "%s-dev (compiled manually)"`, opts.Version)
|
||||||
replace(versionCodeFile, versionPattern, newVersion)
|
replace(versionCodeFile, versionPattern, newVersion)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue