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

simplify generated gitignore files #2026

Merged
merged 1 commit into from
Feb 18, 2025
Merged

simplify generated gitignore files #2026

merged 1 commit into from
Feb 18, 2025

Conversation

senekor
Copy link
Contributor

@senekor senekor commented Feb 17, 2025

Cargo has simplified its output a while ago, this is making us more consistent with that. Cargo doesn't add Cargo.lock anymore at all, neither for libraries nor for binaries. It still makes sense for us though, since our users shouldn't submit Cargo.lock to the test runner.


I noticed this on the PR for list-ops, but thought it's better to update everything at once in a separate PR.

Cargo has simplified its output a while ago, this is making us more
consistent with that. Cargo doesn't add Cargo.lock anymore at all,
neither for libraries nor for binaries. It still makes sense for us
though, since our users shouldn't submit Cargo.lock to the test runner.
@@ -13,6 +13,7 @@ pub struct CanonicalData {
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
#[serde(untagged)]
#[allow(clippy::large_enum_variant)]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated piggyback :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clippy is too smart for its own good

@senekor senekor requested a review from ellnix February 17, 2025 22:41
Copy link
Contributor

@ellnix ellnix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

For anyone looking at this in the future, relevant PRs on cargo:
rust-lang/cargo#12382
I hadn't really considered the git bisect argument but it's a good one. I don't think it applies to us though.

rust-lang/cargo#7647

The crates.io guide page in the diff also seems to have moved:
https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

@senekor senekor merged commit 7252d3e into main Feb 18, 2025
13 checks passed
@senekor senekor deleted the senekor/qrkksoqkssuo branch February 18, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants