From 79194d607c00e6bde2c89b7195a1edffdafeffd7 Mon Sep 17 00:00:00 2001 From: Sasha Gerrand Date: Thu, 13 Apr 2023 15:24:22 +0100 Subject: [PATCH] Prefer go install for ghr Modern go version have hard deprecated `go get` outside of modules: ``` 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'. ``` --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f790d5..54bdda7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,10 +12,10 @@ references: upload-packages: &upload-packages run: command: apk add --no-cache git openssh-client - name: Install dependencies of go get + name: Install dependencies of go install upload-ghr: &upload-ghr run: - command: go get github.com/tcnksm/ghr + command: go install github.com/tcnksm/ghr@latest name: Install ghr executable jobs: build: