From d6101c38b7832bd395910d5fe9cff88c46bde170 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Mon, 15 Mar 2021 00:52:15 -0700 Subject: [PATCH] update build and deps --- core/poller/.travis.yml | 2 +- core/poller/go.mod | 18 +++++------------- core/poller/start.go | 4 ++-- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/core/poller/.travis.yml b/core/poller/.travis.yml index 2b5173f1..41931c19 100644 --- a/core/poller/.travis.yml +++ b/core/poller/.travis.yml @@ -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 diff --git a/core/poller/go.mod b/core/poller/go.mod index 4fb3f6c6..6c8384cd 100644 --- a/core/poller/go.mod +++ b/core/poller/go.mod @@ -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 ) diff --git a/core/poller/start.go b/core/poller/start.go index f85cd947..8b69180a 100644 --- a/core/poller/start.go +++ b/core/poller/start.go @@ -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. }