File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -134,15 +134,22 @@ functions:
134
134
script : |
135
135
${PREPARE_SHELL}
136
136
137
- # Install any go tools that we need. Use "go install" instead of "go get" to prevent
138
- # modifying the go.mod file.
139
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
140
- go install github.com/walle/lll/...@latest
141
-
142
137
# initialize submodules
143
138
git submodule init
144
139
git submodule update
145
140
141
+ install-linters :
142
+ - command : shell.exec
143
+ params :
144
+ working_dir : src/go.mongodb.org/mongo-driver
145
+ script : |
146
+ ${PREPARE_SHELL}
147
+
148
+ # Install linters. Use "go install" instead of "go get" to prevent modifying the go.mod
149
+ # file.
150
+ go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
151
+ go install github.com/walle/lll/...@latest
152
+
146
153
upload-mo-artifacts :
147
154
- command : shell.exec
148
155
params :
@@ -953,6 +960,7 @@ tasks:
953
960
- name : sa-lint
954
961
tags : ["static-analysis"]
955
962
commands :
963
+ - func : install-linters
956
964
- func : run-make
957
965
vars :
958
966
targets : lint
You can’t perform that action at this time.
0 commit comments