-
Notifications
You must be signed in to change notification settings - Fork 104
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
Looks like multiple versions of a crate with a build script clobber each other #100
Comments
Your explanation makes sense. I think I expected the output to land in a parallel directory structure, not just $execroot. I still have a bad mental model for how Bazel does things. You can probably use |
@acmcarther, we’re thinking of prefixing the path to There would be a similar change to include that path in the I’m on mobile and will add a bit more detail tomorrow, but wanted to get your thoughts on this approach. By the way, why is the genrule template setting |
I think the I did some archeology and I correlated that commit (and "wayland", that it refers to) with this commit in a different project The dependencies there that require build scripts are:
Trying to compile these with |
Oh, misunderstanding on my part (though harmless). Build script generation was originally added in acmcarther/cargo-raze@1a27596#diff-7989f6d09b526681306f518324ef478a. Notably, it does not include This could either be because those dependencies required it, or because some the Bazel sandboxing feature was added between the original commit and the re-adding commit. |
On the It might make sense to narrow this to |
This should address google#100
So I made a PR for adding the |
@acmcarther thanks for the quick merge of the PR. What's the process for getting it published to crates.io? Is that something you (someone else) do manually? Pardon my ignorance 😕 |
I've been upping the version basically after every PR, but I also want to submit #105 this time. I'll submit that one once CI passes and then publish a new version |
Great, thanks @acmcarther! |
cargo-raze/impl/src/templates/partials/build_script.template
Line 36 in 9c9e480
This ends up making that dir in
$execroot/mime_guess_out_dir_outputs
, and we have two versions ofmime_guess
, and it appears they're clobbering each other.We should have a better idea if that's true and a fix for it in a little bit.
cc @vitalyd
Edit:
I imagine this is partly because sandboxing is disabled for these genrules.
The text was updated successfully, but these errors were encountered: