@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:
structslop: internal error: package "errors" without types was imported from "github.com/..."
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
- same result as
go install github.com/orijtech/structslop/cmd/structslop@latest , but noting specific version for clarity
structslop ./...
Output:
root@6c4091e45d1e:/go/check-whois# structslop ./...
structslop: internal error: package "errors" without types was imported from "github.com/atc0005/check-whois/internal/domain"
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 ./...
@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.2docker container run -it --rm golang:1.20.2git clone https://github.com/atc0005/check-whoiscd check-whoisgo install github.com/orijtech/structslop/cmd/structslop@v0.0.7go 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.7docker container run -it --rm golang:1.19.7git clone https://github.com/atc0005/check-whoiscd check-whoisgo install github.com/orijtech/structslop/cmd/structslop@v0.0.7structslop ./...