-
Notifications
You must be signed in to change notification settings - Fork 72
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
interface with Go programming language #719
Comments
Hi @malt3, thank you very much for your interest! The go bindings are actually already somehow prepared in the dnf5 project. It is just by default turned off during compilation, see the All bindings are generated using SWIG, we are currently using the SWIG 4.0. You can see all related code in the bindings directory. In So this should be basically what to do in the beginning, "simply" make it compilable with Feel free to ask me for additional info if needed 🙂 |
Hey,
All of those fail because swig has no support for
Doc on swig unique_ptr. There was an attempt to implement shared_ptr, but the PR for it was never merged and the issue was closed: swig/swig#2030 See also: swig/swig#2337 So in my eyes the possible ways forward are:
I may try to implement swig unique_ptr / shared_ptr support for Go upstream but I'm not sure what the scope of that feature would be. |
I think there are not many occurrences of |
@malt3 Please, do you plan to work on this? I still believe it would be beneficial to export only the parts without unique_ptr usage. If there is a specific usage crucial for some typical workflow, we can discuss it further and try to provide an alternative API for that. |
Realistically speaking, I'll probably not find the time in the coming weeks, so feel free to reassign this issue. |
No problem, I'll keep it there for now and you're very welcome to continue in the future. I will unassign myself to show it as available for any other potential candidate who wishes to contribute to this. |
The README states:
I would potentially like to work on this. Can someone explain on a high level what steps were required to add language bindings for other languages?
The text was updated successfully, but these errors were encountered: