Skip to content

Commit 0530bb7

Browse files
committed
Fix golangci-lint error
``` Running [/home/runner/golangci-lint-1.60.3-linux-amd64/golangci-lint run --build-tags ruby_3_4] in [/home/runner/work/go-gem-wrapper/go-gem-wrapper] ... level=error msg="Running error: context loading failed: failed to load packages: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: go: inconsistent vendoring in /home/runner/work/go-gem-wrapper/go-gem-wrapper:\n\tgithub.com/stretchr/testify@v1.10.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgithub.com/davecgh/go-spew@v1.1.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgithub.com/pmezard/go-difflib@v1.0.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\tgopkg.in/yaml.v3@v3.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt\n\n\tTo ignore the vendor directory, use -mod=readonly or -mod=mod.\n\tTo sync the vendor directory, run:\n\t\tgo mod vendor\n" ```
1 parent 6074363 commit 0530bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
uses: golangci/golangci-lint-action@v6
140140
with:
141141
version: ${{ env.GOLANGCI_LINT_VERSION }}
142-
args: --build-tags ${{ env.BUILD_TAG }}
142+
args: --build-tags ${{ env.BUILD_TAG }} --modules-download-mode=readonly
143143

144144
- name: Slack Notification (not success)
145145
uses: act10ns/slack@v2

0 commit comments

Comments
 (0)