Uh oh!
There was an error while loading. Please reload this page.
include Cargo.{toml,lock} in rust-src tarball - #44076
Conversation
ishitatsuyuki
commented
Aug 25, 2017
I think the |
RalfJung
commented
Aug 25, 2017
That's currently not an option, only |
eddyb
commented
Aug 25, 2017
alexcrichton
commented
Aug 25, 2017
@bors: r+ |
bors
commented
Aug 25, 2017
📌 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.ishitatsuyuki
commented
Aug 26, 2017
I think this failed rollup with distcheck. |
RalfJung
commented
Aug 26, 2017
Failure of #44093 seems to be Doesn't look like this one could be the culprit? |
bors
commented
Aug 26, 2017
⌛ Testing commit 8cd4cac with merge 5bcdb1635fc49be3b52a462481ab05fe456e4885... |
bors
commented
Aug 26, 2017
💔 Test failed - status-travis |
RalfJung
commented
Aug 26, 2017
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
alexcrichton
commented
Aug 26, 2017
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) |
RalfJung
commented
Aug 27, 2017
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 |
alexcrichton
commented
Aug 28, 2017
@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+ |
bors
commented
Aug 28, 2017
📌 Commit bd24325 has been approved by |
frewsxcv
commented
Aug 28, 2017
@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.frewsxcv
commented
Aug 29, 2017
I think this caused a failure in the rollup: @bors r- |
RalfJung
commented
Aug 29, 2017
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. |
frewsxcv
commented
Aug 29, 2017
bors
commented
Aug 29, 2017
📌 Commit bd24325 has been approved by |
RalfJung
commented
Aug 29, 2017
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.