You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v2, the repository does not work correctly with the Go SDK as it has not been set up correctly to deal with major versions: https://go.dev/doc/modules/major-version
Command to reproduce
➜ go run github.com/OctopusDeploy/cli/cmd/octopus@latest version
1.7.1
➜ go run github.com/OctopusDeploy/cli/cmd/[email protected] version
go: github.com/OctopusDeploy/cli/cmd/[email protected]: github.com/OctopusDeploy/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/OctopusDeploy/cli/v2")
➜ go run github.com/OctopusDeploy/cli/v2/cmd/[email protected] version
go: github.com/OctopusDeploy/cli/v2/cmd/[email protected]: github.com/OctopusDeploy/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/OctopusDeploy/cli/v2")
As you can see, whether using go install or go run, there is no way to run a newer version than v1.7.1 as the go module/versioning systems requires v2 in the import paths: github.com/OctopusDeploy/cli/v2
The text was updated successfully, but these errors were encountered:
Since v2, the repository does not work correctly with the Go SDK as it has not been set up correctly to deal with major versions:
https://go.dev/doc/modules/major-version
Command to reproduce
As you can see, whether using
go install
orgo run
, there is no way to run a newer version thanv1.7.1
as the go module/versioning systems requires v2 in the import paths:github.com/OctopusDeploy/cli/v2
The text was updated successfully, but these errors were encountered: