Skip to content

Commit

Permalink
download go modules ahead of linting
Browse files Browse the repository at this point in the history
  • Loading branch information
aka-bo committed Nov 21, 2024
1 parent 1e3615f commit c5ccbc2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cross-language-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ jobs:
export MSBUILDSINGLELOADCONTEXT=1
./scripts/build.sh
- name: Download Go dependencies
run: |
cd tests/cross-language/go
# Workaround for https://github.com/golangci/golangci-lint/issues/825
# Without this, the linter may fail with "ERRO Running error: context loading failed: no go files to analyze"
go mod download
- name: Lint the Go project
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
Expand Down

0 comments on commit c5ccbc2

Please sign in to comment.