mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Fix version
This commit is contained in:
@ -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"
|
||||
```
|
||||
|
@ -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 = ""
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user