You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.16 is now the preferred Go version for all Arduino tooling projects.
The update from Go 1.14 to 1.16 broke the task that runs golint:
```
$ go mod tidy && task --silent go:lint
no required module provides package golang.org/x/lint/golint: go.mod file not found in current directory or any parent directory; see 'go help modules'
task: Failed to run task "go:lint": exit status 1
```
The good news is that the new `go install` command
eliminates the need for the workaround of running the `go get golang.org/x/lint/golint` command from outside the project
path in order to avoid pollution of `go.sum`.
The bad news is the `go list` command used to get the path of the golint installation does not work in the "module-aware
mode" that is now the default (and will be the only mode in Go 1.17). In the end, I gave up on making the task work as
before. I think it's better to require the user to install golint and put the installation in the system `PATH`,
displaying a helpful message when this has not been done.
0 commit comments