-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
"package maps is not in GOROOT" with go1.18 #7646
Comments
Thank you for reporting this issue. gRPC now requires Go version 1.22.7 or higher, as specified in here Line 3 in 1418e5e
Please update your Go installation to resolve this. If the issue persists, please let us know, and we’ll be happy to assist further. |
It would be helpful if there was a place that could introduce the minimum supported Go versions for each version of gRPC since it's not very convenient to upgrade Go version for some older programs. |
The minimum go version for each version of gRPC is mentioned in the go.mod file for each version. For [email protected], the minimum supported version is go 1.21 mentioned here: Line 3 in a75eb1e
|
@sh1yu gRPC promises to support till any of the last two go releases. See https://github.com/grpc/grpc-go?tab=readme-ov-file#prerequisites |
well,version v1.57.2 support go1.18:
|
What version of gRPC are you using?
[email protected]
What version of Go are you using (
go version
)?1.18
What operating system (Linux, Windows, …) and version?
wsl2
What did you do?
If possible, provide a recipe for reproducing the error.
protoc --go_out=. --go-grpc_out=. 111.proto
go build abc.go
What did you expect to see?
go build successfully
What did you see instead?
/home/xxx/.go/pkg/mod/google.golang.org/[email protected]/experimental/stats/metricregistry.go:22:2: package maps is not in GOROOT (/home/xxx/apps/go1.18/src/maps)
/home/xxx/.go/pkg/mod/google.golang.org/[email protected]/clientconn.go:27:2: package slices is not in GOROOT (/home/xxx/apps/go1.18/src/slices)
The text was updated successfully, but these errors were encountered: