This seeks to address issue #9. I am also imagining that it paves a path towards a future where terraform-provider-vinyldns and vinyldns-cli can set custom UserAgents such that usage statistics can be gleaned from logs.
Client{} now has a UserAgent field
NewClientFromEnv() will either look for a VINYLDNS_USER_AGENT env var or set UserAgent to fmt.Sprintf("go-vinyldns %s", Version)
go-vinyldns now has a Version
a make validate-version task errors if the go-vinyldns/version.go's var Version = is not equal to the VERSION cited in the Makefile. While not ideal, it seems necessary to cite the version in two places such that 1) make can generate versioned releases and 2) go-vinyldns can include the version in a default client.UserAgent
bump go-vinyldns patch version. While it's arguably not proper semantic versioning to only bump a patch version on what is ultimately a breaking change that now requires users to set a client.UserAgent, go-vinyldns should stay in lock step major/minor versioning with vinyldns itself, per agreement.
This seeks to address issue #9. I am also imagining that it paves a path towards a future where
terraform-provider-vinyldns
andvinyldns-cli
can set customUserAgent
s such that usage statistics can be gleaned from logs.Client{}
now has aUserAgent
fieldNewClientFromEnv()
will either look for aVINYLDNS_USER_AGENT
env var or setUserAgent
tofmt.Sprintf("go-vinyldns %s", Version)
go-vinyldns
now has aVersion
make validate-version
task errors if thego-vinyldns/version.go
'svar Version =
is not equal to theVERSION
cited in theMakefile
. While not ideal, it seems necessary to cite the version in two places such that 1)make
can generate versioned releases and 2)go-vinyldns
can include the version in a defaultclient.UserAgent
go-vinyldns
patch version. While it's arguably not proper semantic versioning to only bump a patch version on what is ultimately a breaking change that now requires users to set aclient.UserAgent
,go-vinyldns
should stay in lock step major/minor versioning withvinyldns
itself, per agreement.