Skip to content
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

Bazel should have a way to exclude scanning certain directories when using //... #829

Closed
hhclam opened this issue Jan 29, 2016 · 1 comment

Comments

@hhclam
Copy link
Contributor

hhclam commented Jan 29, 2016

When using the //... label to refer to all targets in the workspace Bazel always scan into all directories even if exclusion is used, e.g. using the - operator. The exclusion only happens after Bazel has scanned through the directories.

It would be nice if Bazel has options to exclude directories such as --exclude_dir=something/ that we can instruct not do scan.

@damienmg damienmg added type: feature request P3 We're not considering working on this, but happy to review a PR. (No assignee) labels Jan 31, 2016
@damienmg
Copy link
Contributor

Sorry this actually exists: --deleted_packages it the option your are looking for:

$ ../bazel/output/bazel --bazelrc=/dev/null query ...
Sending SIGTERM to previous Bazel server (pid=3360)... done.
............
ERROR: /private/tmp/test/test/BUILD:1:1: name 'bleh' is not defined.
ERROR: package contains errors: test.
ERROR: no such package 'test': Package 'test' contains errors.
$ ../bazel/output/bazel --bazelrc=/dev/null query --deleted_packages=test ...
//:test
$ cat test/BUILD 
bleh

@damienmg damienmg added under investigation and removed type: feature request P3 We're not considering working on this, but happy to review a PR. (No assignee) labels Jan 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants