bazel-contrib / SIG-rules-authors

Governance and admin for the rules authors Special Interest Group
https://bazel-contrib.github.io/SIG-rules-authors/
Apache License 2.0
28 stars 12 forks source link

Host bazelrc-parser-go #97

Closed illicitonion closed 3 months ago

illicitonion commented 3 months ago

In a drive-by comment on a PR @sluongng mentioned an interest in having a shared bazelrc parsing logic written in Go. I have extracted one from internal code to hand over to bazel-contrib if folks are interested :)

  1. Must use an open-source license, preferably Apache-2.0.

Apache 2 is fine.

  1. Must have wide applicability in the community.

We've written one, it sounds like buildbuddy have one, I know bits of the aspect CLI also implement some code around cleanly calling bazel help flags-as-proto to get related metadata. I think this is reasonably common code to want in wrappers around Bazel, and those seem to mostly be written in Go.

  1. Must have a clear point of contact who answers questions from the SIG.

@illicitonion

  1. Must be “production quality”:

It's a repo with unit tests and a README, which has been in use for 1+ year at Apple.

  1. Must reply to issues/PRs in 2-3 weeks

Happy to sign up to this, related to the next question:

  1. Must have more than one person who is committed to review/approve PRs

@gibfahn and @stevebarrau are happy to volunteer, hopefully @sluongng would be interested too, open to more volunteers!

  1. Must publish semver releases.

Will follow the Go conventions (i.e. avoid breaking changes, new major versions for major changes).

  1. Must work with LTS Bazel version

Not a ruleset, but expect to support whatever new constructs come up.

  1. Must publish the rules to the Bazel Central Registry, keep that CI green

Not a ruleset.

cgrindel commented 3 months ago

The Rules Author SIG approved to bring into bazel-contrib on 2024-04-30.

illicitonion commented 3 months ago

https://github.com/bazel-contrib/bazelrc-parser-go now has content 🎉 thanks all!

sluongng commented 3 months ago

hopefully @sluongng would be interested too

We do maintain our own currently with some elaborate logic to support our own CLI's plugin system. If there are benefits in adopting this newer parser, we would love to contribute back.

Thanks so much for reaching out ❤️ 🍎