-
Welcome
Description of the problemUpgrading golangci-lint in VS Code by running It says the issue is in pkg/golinters/revive.go:68:22 line and I think it was caused by the change in revive v1.1.3 mgechev/revive#628 that added a I've attached the output of VS Code below. Version of golangci-lint$ golangci-lint --version
golangci-lint has version v1.43.0 built from (unknown, mod sum: "h1:SLwZFEmDgopqZpfP495zCtV9REUf551JJlJ51Ql7NZA=") on (unknown) Configuration file/ Go environment/ Verbose output of runningTools environment: GOPATH=/home/marko/work/go, GOBIN=/home/marko/work/go/bin
Installing 1 tool at the configured GOBIN: /home/marko/work/go/bin in module mode.
golangci-lint
Installing github.com/golangci/golangci-lint/cmd/golangci-lint@latest FAILED
{
"killed": false,
"code": 2,
"signal": null,
"cmd": "/usr/bin/go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest",
"stdout": "",
"stderr": "github.com/golangci/golangci-lint/pkg/golinters\n# github.com/golangci/golangci-lint/pkg/golinters\nwork/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/revive.go:68:22: not enough arguments in call to \"github.com/mgechev/revive/lint\".New\n\thave (func(string) ([]byte, error))\n\twant (\"github.com/mgechev/revive/lint\".ReadFile, int)\n"
}
1 tools failed to install.
golangci-lint: failed to install golangci-lint(github.com/golangci/golangci-lint/cmd/golangci-lint@latest): Error: Command failed: /usr/bin/go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@latest
github.com/golangci/golangci-lint/pkg/golinters
# github.com/golangci/golangci-lint/pkg/golinters
work/go/pkg/mod/github.com/golangci/[email protected]/pkg/golinters/revive.go:68:22: not enough arguments in call to "github.com/mgechev/revive/lint".New
have (func(string) ([]byte, error))
want ("github.com/mgechev/revive/lint".ReadFile, int) Code example or link to a public repository/ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Beta Was this translation helpful? Give feedback.
-
Related to:
Fixed by #2576 |
Beta Was this translation helpful? Give feedback.
Related to:
Fixed by #2576