Skip to content

Commit 1a6594f

Browse files
committed
Fix installation of Go dependencies in GitHub Actions.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
1 parent abd0f54 commit 1a6594f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ jobs:
3636
- uses: actions/checkout@v2
3737

3838
- name: Check licenses
39+
uses: actions/setup-go@v2
40+
with:
41+
go-version: '^1.16'
3942
run: |
40-
go get -u github.com/google/addlicense
43+
go install github.com/google/addlicense@latest
4144
export PATH=$PATH:$(go env GOPATH)/bin
4245
addlicense -check .
4346
@@ -66,8 +69,11 @@ jobs:
6669
run: bazelisk --noworkspace_rc build --platforms=@rules_rust//rust/platform:wasi //...
6770

6871
- name: Format (buildifier)
72+
uses: actions/setup-go@v2
73+
with:
74+
go-version: '^1.16'
6975
run: |
70-
GO111MODULE=on go get -u github.com/bazelbuild/buildtools/buildifier@3.4.0
76+
go get install github.com/bazelbuild/buildtools/buildifier@latest
7177
export PATH=$PATH:$(go env GOPATH)/bin
7278
buildifier -mode=check WORKSPACE
7379
buildifier -mode=check BUILD

0 commit comments

Comments
 (0)