-
Notifications
You must be signed in to change notification settings - Fork 113
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
Run cargo update
before testing
#114
Conversation
cc @j-mendez |
Was the Cargo.lock added for some version pinning? #97 reads a bit like that. If that's the case the pins should be added to the Cargo.toml |
Looks like it was introduced for a reason, with fea28ac, though the reason is not specified. Note that this repo also contains a runnable binary at https://github.com/causal-agent/scraper/blob/master/src/main.rs. |
Looks like it was added/removed more than once then… whatever the problem was, a Cargo.lock file can not resolve it so there has to be another way there. |
Please see #113 (comment) I don't think this should be removed as long as |
This is not about pinning compatible versions which as you point out must either happen in the Cargo manifest (when widening the version range) or in downstream lock files for library uses (to narrow the version range). But for the binary shipped as part of this crate this lock file is used by e.g. |
Agreed. Lock file should be included. |
The binary is a good point. However it hides errors for library usage. If the lock file is kept there should be some CI or workflow to ensure both the lock file and the newest versions in the specified ranges work. |
We could just run |
Co-authored-by: EdJoPaTo <[email protected]>
Currently it does not use clippy with updates might also hide some dependency changes but the most important ones are probably caught when building the tests. The more important issue probably is the ignored lock file now in CI. the CI probably should do both: one with the lock file and one with cargo update. |
I am afraid doing that would considerably increase the time taken to perform our Github Actions. I do not know how many minutes are currently available. |
Fixes #113
Ref: Cargo docs and rust-lang/cargo#315