Skip to content

Commit deedf89

Browse files
authored
Fix staticcheck issue in .drone.yml
1 parent d58ad30 commit deedf89

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@latest
21+
- staticcheck ./...
2022
volumes:
2123
- name: gopath
2224
path: /go

0 commit comments

Comments
 (0)