-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
fix: Respect --locked flag #236
Conversation
Thanks!
We also show some of the Cargo options in help, such as manifest-path, so I think this PR is fine as it is. That said, the current one is not that consistent, so ideally we might want to show only cargo-hack-specific flags or other Cargo flags as well.
I think clippy has a lint for this, but they don't seem to be complaining...?
I have not tested it, but the following might work:
|
Looks to default to https://rust-lang.github.io/rust-clippy/master/index.html#/inconsistent_struct_constructor
More so I meant I hadn't seen registry packages used and they can get messy (more chance of network disruptions, changes from new packages being published, etc). If you're fine with it, I can add it. |
Hmm. It is pedantic lint, so it should already be set to warn. Line 62 in 6350a49
Thanks for the clarification. As for the former, I think it would be fine. Even if it is very bad it can be handled using flaky_test crate or similar. As for the latter, we want to test if it is respected by specifying an older version, so we probably don't have to worry about what happens with the newer version.
That would be great! |
When using `--rust-version`, the lockfile can be blown away. While that is a problem in of its own, this focuses on an incremental step of not blowing it away if `--locked` is used. This is part of taiki-e#234
Realized the problem with the lint
Thats an annoying limitation. Its to avoid when order of field initialization is important, like if borrows are involved. |
It wasn't too clear to me if there is something I need to do in response to this. You said the current one isn't consistent. I tried to make it consistent (and my latest force-push makes it more consistent). Is there something more I should be doing? Or is this only with the inconsistency on when cargo flags are shown more generally and separate? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Published in 0.6.20. |
Thanks! Not seeing the job that is supposed to update the manifest for install-action (e.g. taiki-e/install-action#374). Where can I track the status of that? |
It is usually checked automatically every 3 hours (last check was 2 hours ago). It can also be triggered manually, I just triggered it manually now (https://github.com/taiki-e/install-action/actions/runs/7982772416/job/21798009113). See also taiki-e/install-action#348 (comment) |
This is now included in the latest version of install-action (taiki-e/install-action#377). |
As a hack in cargo-hack, it doesn't respect lockfiles when doing MSRV testing unless `--locked` is passed in. This adds that so we make sure we don't run into problems with newer, MSRV-imcompatible dependencies come out that break our build. See - https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/gix-ref.20CI.20error/near/423319798 - taiki-e/cargo-hack#234 - taiki-e/cargo-hack#236
chore(ci): Ensure lockfile is respected during MSRV testing As a hack in cargo-hack, it doesn't respect lockfiles when doing MSRV testing unless `--locked` is passed in. This adds that so we make sure we don't run into problems with newer, MSRV-imcompatible dependencies come out that break our build. See - https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/gix-ref.20CI.20error/near/423319798 - taiki-e/cargo-hack#234 - taiki-e/cargo-hack#236
As a hack in cargo-hack, it doesn't respect lockfiles when doing MSRV testing unless `--locked` is passed in. This adds that so we make sure we don't run into problems with newer, MSRV-imcompatible dependencies come out that break our build. See - https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/gix-ref.20CI.20error/near/423319798 - taiki-e/cargo-hack#234 - taiki-e/cargo-hack#236
@epage Re #236 (comment):
Did you find this written somewhere? |
That was my rephrasing the answer given in the linked issue. |
Ah. Thank you! |
When using
--rust-version
, the lockfile can be blown away. While that is a problem in of its own,this focuses on an incremental step of not blowing it away if
--locked
is used.Some points that were unclear in implementation
--locked
should show up in--help
--help
(cargo
puts it among the manifest options)This is part of #234