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

Automatically ignore vendor dir for finding packages #23771

Closed

Conversation

meteorcloudy
Copy link
Member

@meteorcloudy meteorcloudy commented Sep 26, 2024

  • Adding --vendor_dir to ignored package prefixes as if it's added in the .bazelignore file.
  • This allows users to do bazel build //... after vendoring external deps in the source root without manually adding the vendor dir in .bazelignore.

Fixes #23521

@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Sep 26, 2024
@meteorcloudy
Copy link
Member Author

@bazel-io fork 7.4.0

@Wyverald
Copy link
Member

looks like you have thousands of unit tests to fix...

@meteorcloudy meteorcloudy requested a review from a team as a code owner September 27, 2024 10:29
@meteorcloudy meteorcloudy requested review from gregestren and removed request for a team September 27, 2024 10:29
@copybara-service copybara-service bot closed this in d42301b Oct 1, 2024
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Oct 1, 2024
meteorcloudy added a commit to meteorcloudy/bazel that referenced this pull request Oct 9, 2024
- Adding `--vendor_dir` to ignored package prefixes as if it's added in the `.bazelignore` file.
- This allows users to do `bazel build //...` after vendoring external deps in the source root without manually adding the vendor dir in `.bazelignore`.

Fixes bazelbuild#23521

Closes bazelbuild#23771.

PiperOrigin-RevId: 680994986
Change-Id: I9c8b76ca20b9060232dfe05460a8fc857c92e93f
meteorcloudy added a commit that referenced this pull request Oct 9, 2024
- Adding `--vendor_dir` to ignored package prefixes as if it's added in
the `.bazelignore` file.
- This allows users to do `bazel build //...` after vendoring external
deps in the source root without manually adding the vendor dir in
`.bazelignore`.

Fixes #23521

Closes #23771.

PiperOrigin-RevId: 680994986
Change-Id: I9c8b76ca20b9060232dfe05460a8fc857c92e93f

Backporting
d42301b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash in vendor subcommand
2 participants