opsgenie / opsgenie-lamp

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

go get is broken #30

Closed doagl closed 3 years ago

doagl commented 4 years ago

As of today, you can't use go-get to get the latest version of opsgenie-lamp:

go get github.com/opsgenie/opsgenie-lamp/...
# github.com/opsgenie/opsgenie-lamp/command
../../go/src/github.com/opsgenie/opsgenie-lamp/command/escalation_cmd.go:15:65: cannot use getConfigurations(c) (type *"github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/client".Config) as type *"github.com/opsgenie/opsgenie-go-sdk-v2/client".Config in argument to escalation.NewClient
../../go/src/github.com/opsgenie/opsgenie-lamp/command/escalation_cmd.go:45:17: cannot use &"github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og".OwnerTeam literal (type *"github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og".OwnerTeam) as type *"github.com/opsgenie/opsgenie-go-sdk-v2/og".OwnerTeam in assignment
../../go/src/github.com/opsgenie/opsgenie-lamp/command/escalation_cmd.go:83:4: cannot use escalationCondition[index] (type "github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og".EscalationCondition) as type "github.com/opsgenie/opsgenie-go-sdk-v2/og".EscalationCondition in field value
../../go/src/github.com/opsgenie/opsgenie-lamp/command/escalation_cmd.go:84:4: cannot use notifyTypes[index] (type "github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og".NotifyType) as type "github.com/opsgenie/opsgenie-go-sdk-v2/og".NotifyType in field value
../../go/src/github.com/opsgenie/opsgenie-lamp/command/escalation_cmd.go:85:4: cannot use "github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og".Participant literal (type "github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og".Participant) as type "github.com/opsgenie/opsgenie-go-sdk-v2/og".Participant in field value
../../go/src/github.com/opsgenie/opsgenie-lamp/command/escalation_cmd.go:168:17: cannot use &"github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og".OwnerTeam literal (type *"github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/og".OwnerTeam) as type *"github.com/opsgenie/opsgenie-go-sdk-v2/og".OwnerTeam in assignment
../../go/src/github.com/opsgenie/opsgenie-lamp/command/team_cmd.go:15:53: cannot use getConfigurations(c) (type *"github.com/opsgenie/opsgenie-lamp/vendor/github.com/opsgenie/opsgenie-go-sdk-v2/client".Config) as type *"github.com/opsgenie/opsgenie-go-sdk-v2/client".Config in argument to team.NewClient

Maybe it's related to yesterdays PR: https://github.com/opsgenie/opsgenie-lamp/pull/29/commits/a76dfbc7e18f4de04536c7a6ef9ee34c0307b8be

prakhar-mudaiya commented 3 years ago

Hi @doagl we have started releasing new versions from github pipeline. Go get is working now and giving latest version of the lamp. when you run go get latest version of lamp will be downloaded in the GOPATH