mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-06 13:14:25 +08:00
Fix version
This commit is contained in:
parent
c1e7b36b01
commit
c899706309
2 changed files with 6 additions and 9 deletions
|
@ -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 = ""
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue