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

Fix build failure finding crate_roots when mixed with generated sources #2041

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

UebelAndre
Copy link
Collaborator

rust_test targets which provide srcs and mix generated files with source files in a sub directory will run into a rustc error where the detected lib.rs could not be found for the build action. This is caused by all the sources being symlinked into bazel-out and the crate root detection logic being run on the direct sources and not the symlinks. The new test demonstrates this pattern is now supported.

@UebelAndre UebelAndre enabled auto-merge (squash) June 30, 2023 16:59
@UebelAndre UebelAndre merged commit cd126be into bazelbuild:main Jul 5, 2023
2 checks passed
@UebelAndre UebelAndre deleted the generated-srcs branch July 5, 2023 14:37
Silcet pushed a commit to Silcet/rules_rust that referenced this pull request Jul 10, 2023
Silcet pushed a commit to Silcet/rules_rust that referenced this pull request Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants