Skip to content

Commit de873b9

Browse files
authored
Merge pull request #191 from shiftstack/pin_goimports
Pin goimports to a version that Go v1.15 supports
2 parents 6eab72e + 7f9da56 commit de873b9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/unit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ jobs:
2222

2323
- name: Setup environment
2424
run: |
25-
go get golang.org/x/tools/cmd/goimports
25+
# Changing into a different directory to avoid polluting go.sum with "go get"
26+
cd "$(mktemp -d)"
27+
go mod init unit_tests
28+
29+
# Pin to a version that Go v1.15 supports
30+
go get golang.org/x/tools/cmd/[email protected]
2631
2732
- name: Run go vet
2833
run: |

0 commit comments

Comments
 (0)