-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
include Cargo.{toml,lock} in rust-src tarball #44076
Conversation
I think the |
That's currently not an option, only |
@bors: r+ |
📌 Commit 8cd4cac has been approved by |
include Cargo.{toml,lock} in rust-src tarball The lock file is interesting because e.g. xargo could use it to build libstd against the same dependencies that were used for the main build. More generally speaking, just documenting in this form which exact dependencies should be used IMHO makes lots of sense. I added the Cargo.toml mostly because having the lock without the toml feels odd. Of course, the toml contains references to paths that don't actually exist in the rust-src tarball. Not sure if that is considered a problem.
I think this failed rollup with distcheck. |
Failure of #44093 seems to be
Doesn't look like this one could be the culprit? |
⌛ Testing commit 8cd4cac with merge 5bcdb1635fc49be3b52a462481ab05fe456e4885... |
💔 Test failed - status-travis |
You are right, there's a distcheck failure:
I am not sure why it looks for that file. Is it smart enough to notice that the Cargo.toml I ship contains references to projects that are not included? That would be impressive. I will restrict this to just ship the lock file, then. |
distcheck complains that this file references projects not cotnained in the tarball
I fear this is taking a turn if we're just shipping a standalone cargo.lock file, how does that even get used? (Cargo has virtually no support for this) |
I thought what we could do is for Xargo to copy that lock file into the directory it creates for building libstd, next to the Cargo.toml that it puts there. Would that work? |
A better question I suppose is why the full source tarball isn't available through EDIT: Can |
@RalfJung yeah I think that'd work, it's just sort of... nonstandard? This is similar to rust-lang/cargo#4353 though, and it at least works for now so seems fine to land! @bors: r+ |
📌 Commit bd24325 has been approved by |
@bors rollup |
include Cargo.{toml,lock} in rust-src tarball The lock file is interesting because e.g. xargo could use it to build libstd against the same dependencies that were used for the main build. More generally speaking, just documenting in this form which exact dependencies should be used IMHO makes lots of sense. I added the Cargo.toml mostly because having the lock without the toml feels odd. Of course, the toml contains references to paths that don't actually exist in the rust-src tarball. Not sure if that is considered a problem.
I think this caused a failure in the rollup: @bors r- |
In the log you linked to, I see
How is that at all related to this PR...? The rollup PR you mentioned has this failing CI: https://travis-ci.org/rust-lang/rust/jobs/269407559.
That is in bootstrap, which this PR touches, but that doctest doesn't seem to have to do anything with what I changed. |
📌 Commit bd24325 has been approved by |
It's all right, and thanks :) |
include Cargo.{toml,lock} in rust-src tarball The lock file is interesting because e.g. xargo could use it to build libstd against the same dependencies that were used for the main build. More generally speaking, just documenting in this form which exact dependencies should be used IMHO makes lots of sense. I added the Cargo.toml mostly because having the lock without the toml feels odd. Of course, the toml contains references to paths that don't actually exist in the rust-src tarball. Not sure if that is considered a problem.
include Cargo.{toml,lock} in rust-src tarball The lock file is interesting because e.g. xargo could use it to build libstd against the same dependencies that were used for the main build. More generally speaking, just documenting in this form which exact dependencies should be used IMHO makes lots of sense. I added the Cargo.toml mostly because having the lock without the toml feels odd. Of course, the toml contains references to paths that don't actually exist in the rust-src tarball. Not sure if that is considered a problem.
The lock file is interesting because e.g. xargo could use it to build libstd against the same dependencies that were used for the main build. More generally speaking, just documenting in this form which exact dependencies should be used IMHO makes lots of sense.
I added the Cargo.toml mostly because having the lock without the toml feels odd. Of course, the toml contains references to paths that don't actually exist in the rust-src tarball. Not sure if that is considered a problem.