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

docs(mixin): go get -> go install #928

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clouedoc
Copy link

@clouedoc clouedoc commented Oct 4, 2023

Starting in Go 1.17, installing executables with go get is deprecated. go install may be used instead.

In Go 1.18, go get will no longer build packages; it will only be used to add, update, or remove dependencies in go.mod. Specifically, go get will always act as if the -d flag were enabled.

More information: https://go.dev/doc/go-get-install-deprecation

> Starting in Go 1.17, installing executables with go get is deprecated. go install may be used instead.
>
> In Go 1.18, go get will no longer build packages; it will only be used to add, update, or remove dependencies in go.mod. Specifically, go get will always act as if the -d flag were enabled.

More information: https://go.dev/doc/go-get-install-deprecation

Signed-off-by: Camille Louédoc-Eyriès <[email protected]>
Comment on lines +14 to +15
$ go install github.com/monitoring-mixins/mixtool/cmd/mixtool
$ go install github.com/google/go-jsonnet/cmd/jsonnetfmt
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to specify a version.

Suggested change
$ go install github.com/monitoring-mixins/mixtool/cmd/mixtool
$ go install github.com/google/go-jsonnet/cmd/jsonnetfmt
$ go install github.com/monitoring-mixins/mixtool/cmd/mixtool@latest
$ go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest

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

Successfully merging this pull request may close these issues.

2 participants