Skip to content

Commit 1e4f2b7

Browse files
committed
[lint] explicitly set GOROOT
This solves the issue described in golangci/golangci-lint#3107
1 parent 8bc9248 commit 1e4f2b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151

5252
- name: "Static Analysis: Go Check"
5353
run: |
54+
# Explicitly set GOROOT to avoid golangci-lint/issues/3107
55+
export "GOROOT=$(go env GOROOT)"
5456
STATIC_ANALYSIS_JOB=test_static_analysis_go make static-analysis
5557
shell: bash
5658

0 commit comments

Comments
 (0)