Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

chore: update rustfmt #8

Merged
merged 4 commits into from
Jan 30, 2022
Merged

chore: update rustfmt #8

merged 4 commits into from
Jan 30, 2022

Conversation

dsherret
Copy link
Member

No description provided.

@dsherret
Copy link
Member Author

@thomaseizinger any ideas about how to get this working? 😅

I'm getting these same errors locally.

@thomaseizinger
Copy link
Contributor

@thomaseizinger any ideas about how to get this working? sweat_smile

Unfortunately no but there has been a toolchain bump a couple of days ago: rust-lang/rustfmt@9e1973f

Maybe try a newer revision?

Cargo.toml Outdated
rustfmt-nightly = { git = "https://github.com/rust-lang/rustfmt" }
serde = { version = "1.0.88", features = ["derive"] }
dprint-core = "0.49.1"
rustfmt-nightly = { git = "https://github.com/rust-lang/rustfmt", rev = "7913f13" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if you know this but you can bump a git dependency that is tracked via the lockfile with:

cargo update -p rustfmt-nightly

Copy link
Member Author

@dsherret dsherret Jan 30, 2022

Choose a reason for hiding this comment

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

What benefit does that bring? It seems better to have the revision stored here because it's like a version number and then the revision number won't be accidentally updated in Cargo.lock when running cargo update for the other dependencies. I'm probably missing something.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think there is a functional difference.

It gets confusing if you ever look at the lockfile yourself because it will have two revisions in the URL. The first one being the revision that latest HEAD was at the time you last updated.
The second one being the revision you actually want to checkout.

It is like a version number yes but even for crates.io dependencies, the version that is actually used is only in the lockfile. It probably comes down to personal preference really :)

@dsherret dsherret changed the title chore: attempt update rustfmt chore: update rustfmt Jan 30, 2022
@dsherret
Copy link
Member Author

@thomaseizinger any ideas about how to get this working? sweat_smile

Unfortunately no but there has been a toolchain bump a couple of days ago: rust-lang/rustfmt@9e1973f

Maybe try a newer revision?

Yup! Upgrading seems to have resolved the issue. Thanks! 😊

@dsherret dsherret merged commit ce9b6ba into main Jan 30, 2022
@dsherret dsherret deleted the update_rustfmt branch January 30, 2022 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants