1
0
Fork 0
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:
Michael Eischer 2024-07-07 12:07:24 +02:00
parent be98402ac6
commit a0cac7fcd1
2 changed files with 6 additions and 1 deletions

View file

@ -1 +1 @@
0.16.5 0.16.5-dev

View file

@ -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)