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

example not working on go1.18 #276

Open
icexin opened this issue Apr 17, 2022 · 2 comments
Open

example not working on go1.18 #276

icexin opened this issue Apr 17, 2022 · 2 comments

Comments

@icexin
Copy link

icexin commented Apr 17, 2022

I followed the build steps in README with go1.18. After the building process, this is no function in out/hi.py, just an empty py file with some setup code. When i switch to go.15, everything works ok.

@Theodoree
Copy link
Contributor

Theodoree commented Apr 28, 2022

@icexin 这个工具依赖于golang.org/x/tools/go/packages,升级一下golang.org/x/tools就可以用了

#275

gopy/gen.go

Line 111 in 2eb22ac

bpkgs, err := packages.Load(&packages.Config{Mode: packages.LoadTypes}, path)

@icexin
Copy link
Author

icexin commented May 6, 2022

Thanks!

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

No branches or pull requests

2 participants