-
Notifications
You must be signed in to change notification settings - Fork 444
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
Merge runfiles from transitive dependencies of rust_test crate attr #1487
Conversation
@@ -1046,6 +1046,9 @@ def rustc_compile_action( | |||
files = getattr(ctx.files, "data", []) + coverage_runfiles, | |||
collect_data = True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to attempt to remove it in this change? Or an isolated change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure I understand the implications of using "collect_data" here, so I left it alone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could we also get some tests?
#[test] | ||
fn test_greeting_from_txt_file() { | ||
let welcome = Greeter::from_txt_file().unwrap(); | ||
assert_eq!("Welcome Rust", welcome.greeting("Rust")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backporting this commit (with the test only) to main, I see:
thread 'greeter::test::test_greeting_from_txt_file' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', test/rust/src/greeter.rs:93:48
Hey @neilisaac, this PR looks good to me, however looks like CI is complaining about |
@scentini checks passed! |
Thanks! |
Hopefully resolves #266
I'm open to input from maintainers on how to do this.