bazel-central-registry icon indicating copy to clipboard operation
bazel-central-registry copied to clipboard

feat(rules_git): add `1.0.0-alpha.1`

Open mattyclarkson opened this issue 10 months ago • 10 comments

Provides hermetic git rules to fetch git repositories.

Only .git objects are retrieved at bazel fetch time. All other git operations happen at execution time.

This is the first alpha. We want to get git archive support in-place before beta and battle test the bazel-git implementation with many more test cases before stable. We would also like to get git bundle working to allow upload of already retrieved .git objects so we can then download the .git objects with the Bazel HTTP downloader.

Documentation is here.

mattyclarkson avatar Apr 23 '24 21:04 mattyclarkson

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (rules_git) have been updated in this PR. Please review the changes.

bazel-io avatar Apr 23 '24 21:04 bazel-io

@mattyclarkson I forgot what the status is, but would you be interested in "upstreaming" your circl changes into the BCR module?

fmeum avatar Apr 23 '24 22:04 fmeum

@mattyclarkson I forgot what the status is, but

bazelbuild/bazel-gazelle#1767 is in 0.36.0 cloudflare/circl#492 is merged but not in a release, I can upstream a new 1.3.7.bcr.1 bazelbuild/rules_go#3901 is not merged and is needed to make the circl patches work, it missed 0.47.0 unfortunately.

would you be interested in "upstreaming" your circl changes into the BCR module?

Yes, but we're blocked on getting purego understanding into rules_go. If you could help with getting that through and released, I'd be happy to get a module upstreamed.

I'll ask on circl if we can get a release done with the purego patches as well.

mattyclarkson avatar Apr 24 '24 06:04 mattyclarkson

@mattyclarkson Sorry, I forgot about that PR. I have some other changes planned that would make for a good follow-up minor release.

fmeum avatar Apr 24 '24 07:04 fmeum

No worries, there is a lot going on! Thanks for having another look at it.

I'll be able to tidy up bazel-git MODULE.bazel then.

mattyclarkson avatar Apr 24 '24 07:04 mattyclarkson

I'll need to respin this to a later version. It needs two things:

Once #1873 lands, I'll update this PR.

mattyclarkson avatar Apr 24 '24 12:04 mattyclarkson

Needs #1881 rules_diff support.

mattyclarkson avatar Apr 25 '24 09:04 mattyclarkson

Currently hitting a IO exception when re-using the declared directory checkout. It may be related to bazelbuild/bazel#22151.

Once that has been investigated and squashed, I can update this with 1.0.0-beta.2 and we can all have hermetic git fetching.

mattyclarkson avatar May 03 '24 08:05 mattyclarkson

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (rules_git) have been updated in this PR. Please review the changes.

bazel-io avatar Jun 24 '24 09:06 bazel-io

Have pinned the Bazel version to 7.2.1rc2 to avoid https://github.com/bazelbuild/bazel/issues/22151.

Once 7.2.1 is released, I'll set the minimum version in MODULE.bazel to that in subsequent versions of rules_git.

The module#bazel_compatibility does not support release candidate versions.

mattyclarkson avatar Jun 24 '24 09:06 mattyclarkson