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

bindings/go: make it work with upcoming go1.24. #247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dot-asm
Copy link
Collaborator

@dot-asm dot-asm commented Dec 20, 2024

In an unexpected turn of events go1.24 reclassified import "C" non-local, which rendered C.blst_* type aliases defunct. The only working solution appears to be to wrap them into structs. Since all the C.blst_* types were opaque, the wrapping shouldn't affect applications. In the sense that the shell struct won't obstruct anything, because nothing was visible.

In an unexpected turn of events go1.24 reclassified import "C" non-local,
which rendered C.blst_* type aliases defunct. The only working solution
appears to be to wrap them into structs. Since all the C.blst_* types
were opaque, the wrapping shouldn't affect applications. In the sense
that the shell struct won't obstruct anything, because nothing was visible.
@mark-rushakoff
Copy link

Thanks for the quick turnaround @dot-asm. I can confirm that with this change, I am able to successfully build my project using the blst Go bindings, whether I am still using go1.23, go1.24rc1, or with Go tip.

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

Successfully merging this pull request may close these issues.

2 participants