Skip to content

Commit 717ff88

Browse files
committed
fix: allow golangci-lint to fetch modules
1 parent 61dd7f9 commit 717ff88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ run:
33
issues-exit-code: 1
44
tests: true
55
build-tags: []
6-
modules-download-mode: vendor
76

87
linters-settings:
98
errcheck:
@@ -139,7 +138,8 @@ issues:
139138
text: "Error return value of.*not checked"
140139

141140
output:
142-
format: colored-line-number
141+
formats:
142+
- format: colored-line-number
143143
print-issued-lines: true
144144
print-linter-name: true
145145

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ lint: lint-go lint-python
3535

3636
lint-go:
3737
@echo "Linting Go code..."
38+
go mod download
3839
golangci-lint run
3940

4041
lint-python:

0 commit comments

Comments
 (0)