mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-23 15:12:57 +08:00
Release v3.4.1
This commit is contained in:
parent
b77cfa2b84
commit
c1e7b36b01
1 changed files with 14 additions and 0 deletions
14
main.go
14
main.go
|
@ -13,7 +13,21 @@ import (
|
|||
|
||||
//go:generate go run build/generate/generate.go build/generate/featureMatrix.go
|
||||
|
||||
// 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.
|
||||
var (
|
||||
SHA = ""
|
||||
Version = "3.4.1"
|
||||
BuildTime = ""
|
||||
)
|
||||
|
||||
func main() {
|
||||
version.SHA = SHA
|
||||
version.Version = Version
|
||||
version.BuildTime = BuildTime
|
||||
|
||||
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
||||
if info, ok := debug.ReadBuildInfo(); !ok && info == nil {
|
||||
fmt.Fprint(os.Stderr, "Warning: dnscontrol was built without Go modules. See https://github.com/StackExchange/dnscontrol#from-source for more information on how to build dnscontrol correctly.\n\n")
|
||||
|
|
Loading…
Reference in a new issue