@@ -319,8 +319,8 @@ func doLint(cmdline []string) {
319319 packages = flag .CommandLine .Args ()
320320 }
321321 // Get metalinter and install all supported linters
322- build .MustRun (goTool ("get" , "gopkg.in/alecthomas/gometalinter.v1 " ))
323- build .MustRunCommand (filepath .Join (GOBIN , "gometalinter.v1 " ), "--install" )
322+ build .MustRun (goTool ("get" , "gopkg.in/alecthomas/gometalinter.v2 " ))
323+ build .MustRunCommand (filepath .Join (GOBIN , "gometalinter.v2 " ), "--install" )
324324
325325 // Run fast linters batched together
326326 configs := []string {
@@ -332,12 +332,12 @@ func doLint(cmdline []string) {
332332 "--enable=goconst" ,
333333 "--min-occurrences=6" , // for goconst
334334 }
335- build .MustRunCommand (filepath .Join (GOBIN , "gometalinter.v1 " ), append (configs , packages ... )... )
335+ build .MustRunCommand (filepath .Join (GOBIN , "gometalinter.v2 " ), append (configs , packages ... )... )
336336
337337 // Run slow linters one by one
338338 for _ , linter := range []string {"unconvert" , "gosimple" } {
339339 configs = []string {"--vendor" , "--deadline=10m" , "--disable-all" , "--enable=" + linter }
340- build .MustRunCommand (filepath .Join (GOBIN , "gometalinter.v1 " ), append (configs , packages ... )... )
340+ build .MustRunCommand (filepath .Join (GOBIN , "gometalinter.v2 " ), append (configs , packages ... )... )
341341 }
342342}
343343
0 commit comments