Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk doesn't work with recent golang #390

Open
mindlace opened this issue Dec 9, 2021 · 1 comment
Open

sdk doesn't work with recent golang #390

mindlace opened this issue Dec 9, 2021 · 1 comment

Comments

@mindlace
Copy link

mindlace commented Dec 9, 2021

with golang 1.17.3:

$ go get -u github.com/codefresh-io/go-sdk
go: downloading gopkg.in/yaml.v2 v2.2.4
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/mattn/go-runewidth v0.0.13
go: downloading github.com/rivo/uniseg v0.2.0
go get: installing executables with 'go get' in module mode is deprecated.
	Use 'go install pkg@version' instead.
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.
@miquella
Copy link

miquella commented Jan 4, 2022

@mindlace: I actually believe this is a warning, not an error.

It used to be that Go executables (i.e. main packages) were installed using go get …, but that invocation has been deprecated and replaced with go install …@… instead.

I just tested this in a fresh repo using the -d flag (which tells Go you're not trying to install the main package, you're just trying to reference the module):

$ go get -d github.com/codefresh-io/go-sdk@latest
go: downloading github.com/codefresh-io/go-sdk v0.37.4
go: downloading gopkg.in/yaml.v2 v2.2.4
go: downloading github.com/google/go-querystring v1.1.0
go: added github.com/codefresh-io/go-sdk v0.37.4
go: added github.com/google/go-querystring v1.1.0
go: added github.com/mattn/go-runewidth v0.0.4
go: added github.com/olekukonko/tablewriter v0.0.1
go: added gopkg.in/yaml.v2 v2.2.4
$

Note: I am unaffiliated with CodeFresh, just happened across your issue for a different reason 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants