-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
buildRustCrate fails to build rustversion 1.0.2 #78412
Labels
Comments
This was referenced Jan 24, 2020
This might be a duplicate of #74071 |
andir
added a commit
to andir/nixpkgs
that referenced
this issue
Jan 28, 2020
`build.rs` files might create files. Those files are supposed to go into `OUT_DIR` (envirionment variable) and not be overlayed onto the source tree.
10 tasks
dtzWill
pushed a commit
to dtzWill/nixpkgs
that referenced
this issue
Jan 30, 2020
`build.rs` files might create files. Those files are supposed to go into `OUT_DIR` (envirionment variable) and not be overlayed onto the source tree. (cherry picked from commit a57d0fe)
jpgu-epam
pushed a commit
to jpgu-epam/nixpkgs
that referenced
this issue
Feb 4, 2020
`build.rs` files might create files. Those files are supposed to go into `OUT_DIR` (envirionment variable) and not be overlayed onto the source tree.
purcell
pushed a commit
to purcell/nixpkgs
that referenced
this issue
Feb 13, 2020
`build.rs` files might create files. Those files are supposed to go into `OUT_DIR` (envirionment variable) and not be overlayed onto the source tree. (cherry picked from commit a57d0fe)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
buildRustCrate
will clobber the source directory of the rustversion crate and it will subsequently fail to build with an error like this:The reason this happens is because:
$OUT_DIR/version.rs
;src/version.rs
.To Reproduce
Steps to reproduce the behavior:
crate2nix
a crate dependent on rustversion (or maybe rustversion itself?)nix build
Expected behavior
The original source file should not be replaced. I don’t believe this copying code should exist at all.
cc @andir
The text was updated successfully, but these errors were encountered: