Skip to content

Commit c2b5ef5

Browse files
committed
go get starting from 1.17 is deprecated to install binaries
https://go.dev/doc/go-get-install-deprecation
1 parent c1fd873 commit c2b5ef5

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.github/workflows/publish-go-tester-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
117117
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
118118
- name: Download tool to embed manifest in win binary
119-
run: go get github.com/akavel/rsrc
119+
run: go install github.com/akavel/rsrc@latest
120120
if: runner.os == 'Windows'
121121

122122
# building the agent for win requires a different task because of an extra flag

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,7 @@ jobs:
7474
if: matrix.os == 'ubuntu-20.04'
7575

7676
- name: Install Go deps
77-
# Since 10/23/2019 pwsh is the default shell
78-
# on Windows, but pwsh fails to install protoc-gen-go so
79-
# we force bash as default shell for all OSes in this task
80-
run: |
81-
go get -u github.com/sanbornm/go-selfupdate/...
77+
run: go install github.com/sanbornm/go-selfupdate/...@latest
8278

8379
- name: Install Taskfile
8480
uses: arduino/setup-task@v1
@@ -98,7 +94,7 @@ jobs:
9894
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
9995
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
10096
- name: Download tool to embed manifest in win binary
101-
run: go get github.com/akavel/rsrc
97+
run: go install github.com/akavel/rsrc@latest
10298
if: matrix.os == 'windows-2019'
10399

104100
# building the agent for win requires a different task because of an extra flag

icon/make_icon.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ GOTO DONE
1717

1818
:INSTALL
1919
ECHO Installing 2goarray...
20-
go get github.com/cratonica/2goarray
20+
go install github.com/cratonica/2goarray@latest
2121
IF ERRORLEVEL 1 GOTO GETFAIL
2222
GOTO POSTINSTALL
2323

2424
:GETFAIL
25-
ECHO Failure running go get github.com/cratonica/2goarray. Ensure that go and git are in PATH
25+
ECHO Failure running go install github.com/cratonica/2goarray@latest. Ensure that go and git are in PATH
2626
GOTO DONE
2727

2828
:NOGO

icon/make_icon.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ fi
77

88
if [ ! -e "$GOPATH/bin/2goarray" ]; then
99
echo "Installing 2goarray..."
10-
go get github.com/cratonica/2goarray
10+
go install github.com/cratonica/2goarray@latest
1111
if [ $? -ne 0 ]; then
12-
echo Failure executing go get github.com/cratonica/2goarray
12+
echo Failure executing go install github.com/cratonica/2goarray@latest
1313
exit
1414
fi
1515
fi

0 commit comments

Comments
 (0)