bazelbuild/bazel

Support repository_ctx.patch(patch_directory) arg

Open

#19.772 geöffnet am 9. Okt. 2023

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P3help wantedteam-ExternalDepstype: feature request

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

Description of the feature request:

I would like to specify the working directory for the repository_ctx.patch so that it is different than the repository root.

Aspect's bazel-lib has a similar function: https://github.com/aspect-build/bazel-lib/blob/8b06f31c46bea4e416bd199f67da68f8494a2ebd/docs/repo_utils.md?plain=1#L33

Which category does this issue belong to?

Core

What underlying problem are you trying to solve with this feature?

Having patching restricted to a subset of the repository tree.

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Contributor Guide