golangci-lint.exe版本为1.31.0
执行:golangci-lint.exe run d:sourcegithub.comahfuzhanggo_xxx_serversrccgi 正常
执行:golangci-lint.exe run D:sourcegithub.comahfuzhanggo_xxx_serversrccgi 出错
错误信息:
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$ 变量的盘符就是大写!