【记录一个问题】golangci-lint.exe中,盘符大写就会执行出错
阅读原文时间:2023年07月09日阅读:4

golangci-lint.exe版本为1.31.0

执行:golangci-lint.exe run d:\source\github.com\ahfuzhang\go_xxx_server\src\cgi 正常

执行:golangci-lint.exe run D:\source\github.com\ahfuzhang\go_xxx_server\src\cgi 出错

错误信息:

level=error msg="[linters context] typechecking error: go: directory . outside available modules"
level=warning msg="[runner] Can't run linter goanalysis_metalinter: S1011: failed prerequisites: [(inspect@command-line-arguments, isgenerated@command-line-arguments): analysis skipped: errors in package: [-: go: directory . outside available modules]]"
level=warning msg="[runner] Can't run linter unused: buildir: analysis skipped: errors in package: [-: go: directory . outside available modules]"
level=error msg="Running error: buildir: analysis skipped: errors in package: [-: go: directory . outside available modules]"

真是一个神坑!

还没办法集成到goland中,因为 $FileDir$ 变量的盘符就是大写!

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章