From 1b30d79777811042f27a90a56a062bed535742d2 Mon Sep 17 00:00:00 2001 From: Sasha Gerrand Date: Tue, 14 Nov 2023 17:40:20 +0000 Subject: [PATCH] Prefer `go install` for modern Go 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 ``` --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4415ee7..f970aac 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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