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.
|
Edit the "Version" variable in `pkg/version/version.go` and commit.
|
||||||
|
|
||||||
```
|
```
|
||||||
export PREVVERSION=3.3.0 <<< Change to the previous version
|
export PREVVERSION=3.3.0 <<< Change to the previous version
|
||||||
export VERSION=3.4.0 <<< Change to the new release version
|
export VERSION=3.4.0 <<< Change to the new release version
|
||||||
git checkout master
|
git checkout master
|
||||||
vi pkg/version/version.go <<< Change "Version" to new release version
|
vi main.go <<< Change "Version" to new release version
|
||||||
git commit -m'Release v'"$VERSION" pkg/version/version.go
|
git commit -m'Release v'"$VERSION" main.go
|
||||||
git tag v"$VERSION"
|
git tag v"$VERSION"
|
||||||
git push origin tag v"$VERSION"
|
git push origin tag v"$VERSION"
|
||||||
```
|
```
|
||||||
|
@ -7,13 +7,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Version management. Goals:
|
// NOTE: main() updates these.
|
||||||
// 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.
|
|
||||||
var (
|
var (
|
||||||
SHA = ""
|
SHA = ""
|
||||||
Version = "3.4.0"
|
Version = ""
|
||||||
BuildTime = ""
|
BuildTime = ""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user