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

Add Cargo.lock #427

Closed
RalfJung opened this issue Aug 13, 2018 · 6 comments · Fixed by #995
Closed

Add Cargo.lock #427

RalfJung opened this issue Aug 13, 2018 · 6 comments · Fixed by #995
Labels
A-tests Area: affects our test suite or CI C-bug Category: This is a bug.

Comments

@RalfJung
Copy link
Member

It would be nice to make use of locking, to make sure CI and me actually test the same stuff.

The problem, if I recall correct what @oli-obk said, is that this lockfile would be picked up by rustc as well through the submodule, and we do not want that. Is that right? How do other tools handle this?

@RalfJung RalfJung added the C-enhancement Category: a PR with an enhancement or an issue tracking an accepted enhancement label Nov 17, 2018
@RalfJung
Copy link
Member Author

RalfJung commented Mar 8, 2019

I am going to close this, as it's not a big deal and I am not even sure if it is worth fixing. (There's also something good about always using the latest version, and with Miri being distributed via rustup soon, this does not affect users.)

@RalfJung
Copy link
Member Author

RalfJung commented Oct 13, 2019

Reopening: in #992, CI failed because a bump in a crate, together with not having a lockfile, means Miri doesn't build on CI any more (the new version of compiletest-rs does not work with old nightlies any more). And until rust-lang/rust#65342 lands we also will be unable to make it build again, so Miri development is just halting until that situation is resolved.

That's quite awful, and having a lockfile would avoid this kind of situation.

@ehuss is there any way to have a lockfile here in the Miri repo in a way that when the same file appears in the rustc tree (due to it being a submodule), it does not cause trouble for cargo?

@RalfJung RalfJung reopened this Oct 13, 2019
@RalfJung RalfJung added A-tests Area: affects our test suite or CI C-bug Category: This is a bug. and removed C-enhancement Category: a PR with an enhancement or an issue tracking an accepted enhancement labels Oct 13, 2019
@ehuss
Copy link
Contributor

ehuss commented Oct 13, 2019

I think it should be fine to add a Cargo.lock, it should be ignored in the rustc repo. Was there a specific error you encountered when you tried?

You'll probably need to keep it somewhat in sync with rustc's lock file, which might be a little tedious, but probably better than not working at all.

@RalfJung
Copy link
Member Author

Hm, @oli-obk do you remember what the issue was?

@mati865
Copy link
Contributor

mati865 commented Oct 13, 2019

FWIW both RLS and Rustfmt have Cargo.lock in their repo and it doesn't cause issues for Rust.

@RalfJung RalfJung mentioned this issue Oct 14, 2019
bors added a commit that referenced this issue Oct 14, 2019
@RalfJung
Copy link
Member Author

@mati865 ah, that's great!
#995 adds a lockfile to Miri, then.

@bors bors closed this as completed in 394a9d5 Oct 14, 2019
@bors bors closed this as completed in #995 Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tests Area: affects our test suite or CI C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants