Skip to content

Commit ad9dad0

Browse files
authored
Merge pull request #44 from drone-plugins/fix-staticcheck
Fix staticcheck issue in .drone.yml
2 parents d58ad30 + 3de8df9 commit ad9dad0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.drone.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ steps:
1414
- name: staticcheck
1515
pull: always
1616
image: golang:1.19
17+
environment:
18+
GO111MODULE: "on" # Explicitly enable Go modules
1719
commands:
18-
- go get honnef.co/go/tools/cmd/staticcheck
19-
- go run honnef.co/go/tools/cmd/staticcheck ./...
20+
- go install honnef.co/go/tools/cmd/staticcheck@v0.4.3
21+
- staticcheck ./...
2022
volumes:
2123
- name: gopath
2224
path: /go

0 commit comments

Comments
 (0)