1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Fix version

This commit is contained in:
Tom Limoncelli
2020-10-12 12:55:10 -04:00
parent c1e7b36b01
commit c899706309
2 changed files with 6 additions and 9 deletions

View File

@ -32,11 +32,11 @@ go version
Edit the "Version" variable in `pkg/version/version.go` and commit.
```
export PREVVERSION=3.3.0 <<< Change to the previous version
export VERSION=3.4.0 <<< Change to the new release version
export PREVVERSION=3.3.0 <<< Change to the previous version
export VERSION=3.4.0 <<< Change to the new release version
git checkout master
vi pkg/version/version.go <<< Change "Version" to new release version
git commit -m'Release v'"$VERSION" pkg/version/version.go
vi main.go <<< Change "Version" to new release version
git commit -m'Release v'"$VERSION" main.go
git tag v"$VERSION"
git push origin tag v"$VERSION"
```

View File

@ -7,13 +7,10 @@ import (
"time"
)
// Version management. Goals:
// 1. Someone who just does "go get" has at least some information.
// 2. If built with build/build.go, more specific build information gets put in.
// Update the number here manually each release, so at least we have a range for go-get people.
// NOTE: main() updates these.
var (
SHA = ""
Version = "3.4.0"
Version = ""
BuildTime = ""
)