Skip to content

Commit

Permalink
chore(lint): setting download mode for modules to readonly
Browse files Browse the repository at this point in the history
Setting this allows validation that go.mod is up to
date in CI

Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Nov 22, 2024
1 parent ad2e29b commit 21020fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
run:
# disallows implicit automatic updating of go.mod and fails when any changes to go.mod are needed
modules-download-mode: readonly
linters:
enable:
- errcheck # Checks for unchecked errors
Expand Down

0 comments on commit 21020fc

Please sign in to comment.