opsgenie / opsgenie-lamp

OpsGenie Lamp with Go SDK
Apache License 2.0
34 stars 18 forks source link

Does not `go get` install clean on newer `go`s #18

Closed samv closed 4 years ago

samv commented 5 years ago

This project is still using dep, without checked-in module vendoring, and the command that the instructions list to install it does not work due to either upstream module changes, or perhaps the subtle differences betweenthe alternate approaches to resolving dependencies between dep and go modules.

$ go get github.com/opsgenie/opsgenie-lamp/...
go: finding github.com/opsgenie/opsgenie-lamp latest
go: downloading github.com/opsgenie/opsgenie-lamp v0.0.0-20190823114531-67ad89ea4143
go: extracting github.com/opsgenie/opsgenie-lamp v0.0.0-20190823114531-67ad89ea4143
go: finding github.com/ccding/go-config-reader latest
go: finding github.com/urfave/cli v1.22.1
go: finding github.com/opsgenie/opsgenie-go-sdk-v2 latest
go: downloading github.com/urfave/cli v1.22.1
go: downloading gopkg.in/yaml.v2 v2.2.1
go: extracting github.com/urfave/cli v1.22.1
go: extracting gopkg.in/yaml.v2 v2.2.1
go: downloading github.com/ccding/go-config-reader v0.0.0-20130817225950-8b6c2b50197f
go: extracting github.com/ccding/go-config-reader v0.0.0-20130817225950-8b6c2b50197f
go: downloading github.com/opsgenie/opsgenie-go-sdk-v2 v0.0.0-20190925114845-8388ea1fcf79
go: extracting github.com/opsgenie/opsgenie-go-sdk-v2 v0.0.0-20190925114845-8388ea1fcf79
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
go: downloading github.com/sirupsen/logrus v0.0.0-20170620144510-3d4380f53a34
go: extracting github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
go: finding github.com/hashicorp/go-retryablehttp v0.6.2
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading github.com/hashicorp/go-retryablehttp v0.6.2
go: extracting github.com/russross/blackfriday/v2 v2.0.1
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
go: extracting github.com/shurcooL/sanitized_anchor_name v1.0.0
go: extracting github.com/hashicorp/go-retryablehttp v0.6.2
go: extracting github.com/sirupsen/logrus v0.0.0-20170620144510-3d4380f53a34
go: downloading golang.org/x/sys v0.0.0-20190412213103-97732733099d
go: extracting golang.org/x/sys v0.0.0-20190412213103-97732733099d
go: downloading github.com/hashicorp/go-cleanhttp v0.5.1
go: downloading github.com/hashicorp/go-hclog v0.9.2
go: extracting github.com/hashicorp/go-cleanhttp v0.5.1
go: extracting github.com/hashicorp/go-hclog v0.9.2
go: finding github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
go: finding github.com/sirupsen/logrus v0.0.0-20170620144510-3d4380f53a34
go: finding github.com/hashicorp/go-cleanhttp v0.5.1
go: finding github.com/hashicorp/go-hclog v0.9.2
go: finding github.com/russross/blackfriday/v2 v2.0.1
go: finding github.com/shurcooL/sanitized_anchor_name v1.0.0
# github.com/opsgenie/opsgenie-go-sdk-v2/client
/Users/samv/go/pkg/mod/github.com/opsgenie/opsgenie-go-sdk-v2@v0.0.0-20190925114845-8388ea1fcf79/client/client.go:177:15: conf.Logger.SetLevel undefined (type *logrus.Logger has no field or method SetLevel)
/Users/samv/go/pkg/mod/github.com/opsgenie/opsgenie-go-sdk-v2@v0.0.0-20190925114845-8388ea1fcf79/client/client.go:179:14: conf.Logger.SetFormatter undefined (type *logrus.Logger has no field or method SetFormatter)
/Users/samv/go/pkg/mod/github.com/opsgenie/opsgenie-go-sdk-v2@v0.0.0-20190925114845-8388ea1fcf79/client/client.go:249:23: client.Config.Logger.GetLevel undefined (type *logrus.Logger has no field or method GetLevel)
/Users/samv/go/pkg/mod/github.com/opsgenie/opsgenie-go-sdk-v2@v0.0.0-20190925114845-8388ea1fcf79/client/config.go:90:14: undefined: logrus.TraceLevel

You can upgrade the project to modules by upgrading go and running go mod init. Commit your go.mod and mod.sum (IIRC) files and start adding dependencies with just go get within the repo.