2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-25 12:09:59 +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() {
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)
replace(versionCodeFile, versionPattern, newVersion)