-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is this linter compatible with Go 1.20+ ? #58
Comments
seems that simple update of dependencies solves the issue:
|
We'll accept a PR (sorry for not actively responding to this issue). #54 is a good example of which files need to be changed. |
- update go.mod from 1.18 to 1.20 (optional) - update Go version used in CI from 1.18.x to 1.20.x (optional) - update dependencies (required) - `dave/dst` - `v0.27.0` to `v0.27.2` - `golang.org/x/tools` - `v0.1.11` to `v0.8.0` refs orijtechGH-58
- update go.mod from 1.18 to 1.20 (optional) - update minimum supported Go version listed in README - update Go version used in CI from 1.18.x to 1.20.x (optional) - update dependencies (required) - `dave/dst` - `v0.27.0` to `v0.27.2` - `golang.org/x/tools` - `v0.1.11` to `v0.8.0` refs orijtechGH-58
Submitted PR #59 for review. |
* Update dependencies to support Go 1.20 - update go.mod from 1.18 to 1.20 (optional) - update minimum supported Go version listed in README - update Go version used in CI from 1.18.x to 1.20.x (optional) - update dependencies (required) - `dave/dst` - `v0.27.0` to `v0.27.2` - `golang.org/x/tools` - `v0.1.11` to `v0.8.0` refs GH-58 * Fix SA1019 io/ioutil deprecation linter error --------- Co-authored-by: Adam Chalkley <atc0005@users.noreply.github.com>
Thanks @atc0005 for the PR updating to Go 1.20. I've created https://github.com/orijtech/structslop/releases/tag/v0.0.8 which should hopefully work. Feel free to reopen if there are still issues. |
@kirbyquerby Thanks! |
@odeke-em
I enabled this linter in a Go 1.19 Docker image (
golang:1.19.7
) without issue, but for a Go 1.20 image (golang:1.20.2
) I get this error:To reproduce:
docker image pull golang:1.20.2
docker container run -it --rm golang:1.20.2
git clone https://github.com/atc0005/check-whois
cd check-whois
go install github.com/orijtech/structslop/cmd/structslop@v0.0.7
go install github.com/orijtech/structslop/cmd/structslop@latest
, but noting specific version for claritystructslop ./...
Output:
This produces no errors and no output:
docker image pull golang:1.19.7
docker container run -it --rm golang:1.19.7
git clone https://github.com/atc0005/check-whois
cd check-whois
go install github.com/orijtech/structslop/cmd/structslop@v0.0.7
structslop ./...
The text was updated successfully, but these errors were encountered: