Skip to content
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

go-resty 2.14.0 import in golang 1.17.5 error #835

Closed
chy9003 opened this issue Aug 29, 2024 · 1 comment · Fixed by #837
Closed

go-resty 2.14.0 import in golang 1.17.5 error #835

chy9003 opened this issue Aug 29, 2024 · 1 comment · Fixed by #837
Assignees
Milestone

Comments

@chy9003
Copy link

chy9003 commented Aug 29, 2024

my golang version is go 1.17.5 and import go-resty 2.14.0 ,but when run it report an error

# golang.org/x/crypto/sha3
/Users/chy/go/pkg/mod/golang.org/x/[email protected]/sha3/xor.go:25:3: undefined: subtle.XORBytes
note: module requires Go 1.20
# golang.org/x/net/http2
/Users/chy/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:1078:13: tc.NetConn undefined (type *tls.Conn has no field or method NetConn)
note: module requires Go 1.18

so does go-resty 2.14.0 does not support go 1.17 ?
ps: go mod file require go 1.16

@jeevatkm
Copy link
Member

@chy9003 Thanks for reaching out. It seems I missed the go.mod go min version update to 1.18 when I refreshed the dependencies for golang.org/x/net and golang.org/x/time because the upstream net package had a CVE vulnerability.

I will correct the go.mod; I tested with go1.19.13 before the v2.14.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants