-
-
Notifications
You must be signed in to change notification settings - Fork 640
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 codegen doesn't work #21529
Comments
Based on my initial investigation, this seems to be caused by The See: pants/src/python/pants/backend/codegen/protobuf/go/rules.py Lines 604 to 615 in 020b2fb
The rules for
Probably just need to set |
Are there any known workarounds to get |
@tdyas I'll try to get this done in the next 24h and get back to you! Thank you for looking into this! |
@geoah: Any word on whether this worked for you? |
Go codegen doesn't work
So,
export-codegen
doesn't work. Also, the docs describe that Pants auto-regenerates any protobuf output. But it doesn't.If you remove the
pkg/person.pb.go
file, and run(in
pkg
), tests are good again.So, about
GOPROXY
: I've tried setting it multiple ways, but Pants seems to ignore it all. I think there may be a relation with: #21527Pants version
Tested on
2.22
and2.23
OS
Both Linux and Mac.
Additional info
Here's a minimal reproduction repo: https://github.com/rdeknijf/pants-repro-protoc
The text was updated successfully, but these errors were encountered: