update build and deps

This commit is contained in:
David Newhall II 2021-03-15 00:52:15 -07:00
parent da00661c92
commit d6101c38b7
3 changed files with 8 additions and 16 deletions

View File

@ -1,6 +1,6 @@
language: go
go:
- 1.14.x
- 1.15.x
before_install:
# download super-linter: golangci-lint
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest

View File

@ -1,18 +1,10 @@
module github.com/unifi-poller/poller
go 1.14
go 1.15
require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/prometheus/client_golang v1.6.0 // indirect
github.com/prometheus/common v0.10.0
github.com/prometheus/procfs v0.1.1 // indirect
github.com/spf13/pflag v1.0.5
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
golang.org/x/net v0.0.0-20200602114024-627f9648deb9 // indirect
golang.org/x/sys v0.0.0-20200610111108-226ff32320da // indirect
golift.io/cnfg v0.0.5
google.golang.org/protobuf v1.24.0 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b
golift.io/cnfg v0.0.7
golift.io/version v0.0.2
)

View File

@ -7,8 +7,8 @@ import (
"os"
"strings"
"github.com/prometheus/common/version"
"github.com/spf13/pflag"
"golift.io/version"
)
// New returns a new poller struct.
@ -25,7 +25,7 @@ func (u *UnifiPoller) Start() error {
u.Flags.Parse(os.Args[1:])
if u.Flags.ShowVer {
fmt.Printf("%s v%s\n", AppName, version.Version)
fmt.Println(version.Print(AppName))
return nil // don't run anything else w/ version request.
}