hedronvision / bazel-compile-commands-extractor

Goal: Enable awesome tooling for Bazel users of the C language family.
Other
697 stars 115 forks source link

[Self-filed] Switch back to rules_python when their issues are fixed #168

Open cpsauer opened 10 months ago

cpsauer commented 10 months ago

We'd switched to rules_python to get a hermetic python interpreter and to be able to make sure that everyone was on the same python version, rather than relying on system python. However, a number of issues caused us to revert for now.

Please see

cpsauer commented 10 months ago

[Intentional blank comment, added to make it clear from the table view that this isn't a user issue lacking a response.]

cpsauer commented 10 months ago

Blocks https://github.com/hedronvision/bazel-compile-commands-extractor/issues/148

peakschris commented 5 months ago

There is also rules_py that is worth a look: https://github.com/aspect-build/rules_py

peakschris commented 5 months ago

I became very disillusioned with the state of python within the bazel ecosystem, and took the step of rewriting from Python to Go for a number of our internal tools. The go build can be isolated inside the module, with go binaries published by your CI. For users, the repo then fetches this on demand, so there is no leakage of go tooling outside the module.

I didn't know go, but AI can rewrite python to go remarkably well. I imagine this approach works equally well with Rust. @alexeagle wrote about this: https://blog.aspect.build/releasing-bazel-rulesets-rust