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

reflect.Pointer is not compatible with go lower than 1.18 #12

Closed
sorcererxw opened this issue Aug 11, 2022 · 2 comments
Closed

reflect.Pointer is not compatible with go lower than 1.18 #12

sorcererxw opened this issue Aug 11, 2022 · 2 comments

Comments

@sorcererxw
Copy link

Describe the bug

I cannot compile my project with go 1.16.

Error message:

15# github.com/cloudwego/frugal/internal/rt
16../compile_path/pkg/mod/github.com/cloudwego/frugal@v0.1.2/internal/rt/runtime.go:120:14: undefined: reflect.Pointer

The reflect.Pointer is added to go in 1.18 golang/go@17910ed . But this package's mod version is 1.15, which has caused some misunderstandings.

Please use reflect.Ptr to ensure compatibility with lower versions.

To Reproduce

Build this project with a version of go lower than 1.18.

@gidd-bud
Copy link

+1

@chenzhuoyu
Copy link
Collaborator

Fixed in 4c936e8

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

No branches or pull requests

3 participants