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

Use 'go install' instead of 'go get' #2161

Merged
merged 1 commit into from Dec 15, 2021

Conversation

schmir
Copy link
Contributor

@schmir schmir commented Dec 15, 2021

go install is the recommended way to install modules starting from go 1.16.
In go 1.18 go get cannot be used anymore to install packages [1]. go 1.18 is
not released yet.

[1] https://tip.golang.org/doc/go1.18#go-command

`go install` is the recommended way to install modules starting from go 1.16.
In go 1.18 `go get` cannot be used anymore to install packages [1]. go 1.18 is
not released yet.

[1] https://tip.golang.org/doc/go1.18#go-command
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well that's quite annoying -- this will probably break old versions of go but we don't really have a choice

@asottile asottile merged commit c0d3b8e into pre-commit:master Dec 15, 2021
@casperdcl
Copy link

yes just broke for me on GH actions default go version. Any plans to support language_version for language: golang?

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

Successfully merging this pull request may close these issues.

None yet

3 participants