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

Published crate on Crates.io contains compilation artifacts #4

Closed
djg opened this issue Aug 23, 2017 · 10 comments
Closed

Published crate on Crates.io contains compilation artifacts #4

djg opened this issue Aug 23, 2017 · 10 comments

Comments

@djg
Copy link
Contributor

djg commented Aug 23, 2017

We're trying to use this crate in gecko, but review was failed because this vendoring the published crate contains target/ folder. Is it possible to republish on crates.io with out target/?

@alexcrichton
Copy link
Contributor

Hm what version are you using off crates.io? I just downloaded 0.6.0-0.6.4 and it looks like the target folder isn't present in any of them?

@djg
Copy link
Contributor Author

djg commented Aug 23, 2017

That's odd. I'm specifying version 0.6.4 and seeing a target/ when running ./mach vendor rust in gecko.
For example, https://bugzilla.mozilla.org/attachment.cgi?id=8899315&action=diff#a/third_party/rust/mio-uds/.cargo-checksum.json_sec2 lists the files that I am seeing.

@alexcrichton
Copy link
Contributor

Hm I wonder if that's a bug in cargo-vendor perhaps?

@djg
Copy link
Contributor Author

djg commented Aug 23, 2017

Should I close this issue and open an issue with cargo-vendor? I'd like to diagnose the issue locally if that helps.

@alexcrichton
Copy link
Contributor

Hm...

Can you find the mio-uds source code in $CARGO_HOME? Is there a target directory in there? If so do you know how that may have appeared?

@djg
Copy link
Contributor Author

djg commented Aug 23, 2017 via email

@alexcrichton
Copy link
Contributor

Ah yeah currently cargo-vendor pulls from ~/.cargo/registry/src and just vendors everything in there (it assumes it hasn't been modified).

It seems odd that target is there though! Did you run cargo build locally in that dir?

@djg
Copy link
Contributor Author

djg commented Aug 23, 2017 via email

@alexcrichton
Copy link
Contributor

Aha yes that may be it! Maybe file an issue with racer?

@djg
Copy link
Contributor Author

djg commented Aug 23, 2017

It's a bug with flycheck-rust. I should exclude it from compiling inside the cargo registry.

@djg djg closed this as completed Aug 23, 2017
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

No branches or pull requests

2 participants