-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ignoring of files and directories for external repository workspaces #9080
Comments
FYI, @irengrig I'm now working on this ;) |
Great! |
Any updates? |
Hi @excavador, @meteorcloudy, who is working on this, is on vacation until 27th of September. I wonder if you also need to ignore files in external repositories for some other use case then for rules_nodejs? |
Sorry for the late rely. |
I found a bug in Bazel while doing the investigation, it will be fixed while we adding |
RELNOTES[NEW]: Similar to the [.bazelignore](https://docs.bazel.build/versions/master/guide.html#.bazelignore) in the main repository, a `.bazelignore` file in external repository will cause the specified directories to be ignored by Bazel. Bazel won't try to identify any packages under the directories, but the files can still be referenced in other BUILD files. Fixes bazelbuild#10234 Fixes bazelbuild#9080 Closes bazelbuild#10261. PiperOrigin-RevId: 282347073 Change-Id: I6322054e8680acf7dffcfbf85104fb17c6481834
Context: this idea was born during the discussion of Always-dirty repository rules proposal for solving the problems of work with managed directories in rules_nodejs.
(The proposal itself was declined)
Problem: inside the directories, symlinked by the custom repository rules, there are some BUILD files, which need to be ignored.
Repository rule will provide the alternative BUILD files description for targets inside the corresponding directories.
One of the approaches might be using .bazelignore file inside the external repository.
We need to create the design and implement it.
The text was updated successfully, but these errors were encountered: