Skip to content

Fix rustc_lib srcs glob and allow it to be empty. #323

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

Merged
merged 2 commits into from
May 30, 2020

Conversation

Arm1stice
Copy link
Contributor

My team uses the build --incompatible_disallow_empty_glob flag in our .bazelrc. When using rust_repositories(version = "nightly", iso_date = "2020-05-15") in our BUILD file, the build fails with the error:

glob pattern 'lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/*.so' didn't match anything, but allow_empty is set to False.

This glob is part of the rustc_lib filegroup. This PR adds allow_empty to that glob, similar to the change made in #245.

Copy link
Collaborator

@acmcarther acmcarther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together. The change looks good, one minor nit.

@Arm1stice
Copy link
Contributor Author

Updated the PR based on your comments

@Arm1stice Arm1stice requested a review from acmcarther May 29, 2020 21:32
@Arm1stice
Copy link
Contributor Author

Re-requested a review to ensure we are good to merge since I don't have write-access to the repo.

@acmcarther acmcarther merged commit 6d00e25 into bazelbuild:master May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants