Add mercurial_repository repository rule#29247
Add mercurial_repository repository rule#29247willstranton wants to merge 2 commits intobazelbuild:masterfrom
mercurial_repository repository rule#29247Conversation
|
I disabled the tests written since they required mercurial to be installed on the CI machines. If this change is ok to merge - can someone help me with the CI changes? I think it's just adding But for Windows, I think it's https://github.com/bazelbuild/continuous-integration/blob/master/buildkite/setup-windows.ps1 but I don't have a Windows machine or knowledge on how to install Mercurial in that environment. |
RELNOTES[NEW]: Adds support for mercurial with repository rule `mercurial_repository` Progress towards bazelbuild#26065
|
This should probably live this in its own module, unless you want this to back bazel module one day, is that what you want? |
|
I'm hesitant to accept this due to future maintenance cost, but I'm open to reconsider if enough users are requesting this.
Does http_archive work for this project? |
|
If we add BCR modules backed by this, wouldn't we have to hermetically provide mercurial as most users won't have it installed? That would definitely increase the maintenance burden. |
I wouldn't say that's a "have to". I'd imagine the an error would show, telling them they need to install mercurial to proceed.
Understood. I'll circle back on the original issue and see if there's more traction in the Bazel community. |
RELNOTES[NEW]: Adds support for mercurial with repository rule
mercurial_repositoryProgress towards #26065
Description
Adds the repository rule
mercurial_repositoryto allow external repositories which use mercurialMotivation
See #26065
Build API Changes
See #26065
Yes
Not a breaking change.
Checklist
Release Notes
RELNOTES[NEW]: Adds support for mercurial with repository rule
mercurial_repository