Skip to content

Commit

Permalink
Prefer go install for modern Go
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
sgerrand committed Nov 14, 2023
1 parent 27757b8 commit 1b30d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- attach_workspace:
at: .
- run:
command: go get github.com/tcnksm/ghr
command: go install github.com/tcnksm/ghr@latest
name: Install ghr executable
- deploy:
name: Upload to GitHub release
Expand Down

0 comments on commit 1b30d79

Please sign in to comment.