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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer go install for modern Go #56

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Prefer go install for modern Go #56

merged 1 commit into from
Nov 14, 2023

Conversation

sgerrand
Copy link
Owner

馃拋 The go get command was deprecated in Go v1.17 and is now reserved for use in modules. These changes update the method used to install ghr accordingly.

$ go get github.com/tcnksm/ghr
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

Exited with code exit status 1

The `go get` command was deprecated in Go v1.17 and is now reserved for use in modules.

```
$ go get github.com/tcnksm/ghr
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

Exited with code exit status 1
```
@sgerrand sgerrand added the bug label Nov 14, 2023
@sgerrand sgerrand merged commit 7d34b47 into main Nov 14, 2023
1 check was pending
@sgerrand sgerrand deleted the main-is-main branch November 14, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant