You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK, the only way to check if it is up-to-date without running a build is to use cargo metadata --locked or cargo tree --locked. I'm not sure what the decisions were for making this a separate step instead of just adding --locked to the normal test command?
The text was updated successfully, but these errors were encountered:
The downside with doing this in a tet job is that it means someone doesn't collect any feedback if this error occurs. This is also why distinct clippy jobs are nice so warnings about builds don't prevent seeing test errors or the other way around
I'd also add that I would be concerned about what is under test being subtle and people accidentally breaking it.
Hm, something fishy is going on. cargo metadata --locked also doesn't fail. I tested it yesterday and it failed then, but it looks like I maybe had some other changes in my tree.
If you check out current master (6240788) and run cargo check, you should end up with a Cargo.lock that is modified with the above diff. I thought --locked is supposed to error if that happens. I thought it compared it textually. Looking closer, it looks like it re-serializes the resolve which re-normalizes it. The two sources are equivalent, which means things haven't actually changed.
I'll post a lock update and close this and chalk it up as a merge error.
The check here does not properly check if
Cargo.lock
is up-to-date.For example, current master has the following diff:
AFAIK, the only way to check if it is up-to-date without running a build is to use
cargo metadata --locked
orcargo tree --locked
. I'm not sure what the decisions were for making this a separate step instead of just adding--locked
to the normal test command?The text was updated successfully, but these errors were encountered: