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:
parent
be98402ac6
commit
a0cac7fcd1
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user