mirror of
https://github.com/restic/restic.git
synced 2026-10-19 07:58:11 +00:00
helpers/prepare-release: write dev version to VERSION file
This commit is contained in:
1 parent
be98402ac6
commit
a0cac7fcd1
2 files changed
+6
-1
No files matched your search
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user