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

Port augeas resource to pure-golang #715

Open
purpleidea opened this issue Aug 28, 2023 · 1 comment
Open

Port augeas resource to pure-golang #715

purpleidea opened this issue Aug 28, 2023 · 1 comment

Comments

@purpleidea
Copy link
Owner

More information here: dominikh/go-augeas#16

[Copied here]

A pure-golang implementation of this would be better, more portable, and also allow for building with: CGO_ENABLED=0.
This would allow for easier reproducible builds for example, as explained here: https://go.dev/blog/rebuild

Would someone like to port this to remove the "C" implementation?

I'm considering (but have not yet decided) to drop "C" stuff in mgmt. https://github.com/purpleidea/mgmt/ if I decide to do so, and this isn't ported, then I would have to either drop the augeas resource entirely or at least from the default builds.

Thank you!

Not sure how strongly people feel about augeas, I really like the idea of keeping it in, but this might be overshadowed by having to use "C". The virt resource also uses "C", but there are alternatives we can port that to.

@ffrank
Copy link
Contributor

ffrank commented Mar 11, 2024

Gave ccgo a spin, but both v3 and v4 choke pretty hard on the augeas source. The augeas code is full of preprocessor macros, so might be extra challenging.

Also ccgo seems to be under very active development, might be worth checking back later.

Rewriting 30k lines of C code manually does seem daunting.

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

No branches or pull requests

2 participants