Skip to content

Commit

Permalink
cargo: downgrade off of yanked version of textwrap
Browse files Browse the repository at this point in the history
I tried to upgrade off of the yanked version, i.e. 0.15.1 ->
0.16.0. However, we also have a transitive dependency on `textwrap`
via `criterion` -> `clap` -> `textwrap`. The `clap` version used by
`criterion` is `^3.1` (our own binary uses clap 4). The matching
version we currently have in our `Cargo.lock` is 3.2.22, which depends
on the yanked `textwrap` version with `^0.15.1`, so we can't upgrade
or downgrade it. This patch therefore also downgrades `clap` from
3.2.22 to 3.2.21, since that version depends on textwrap
`^0.15.0`. With that change made, we can downgrade `textwrap` to
`0.15.0`.
  • Loading branch information
martinvonz committed Oct 24, 2022
1 parent c03c746 commit 2fcb643
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
43 changes: 32 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ rand = "0.8.5"
regex = "1.6.0"
serde = { version = "1.0", features = ["derive"] }
tempfile = "3.3.0"
textwrap = "0.15.0"
textwrap = "0.16.0"
thiserror = "1.0.37"

[dev-dependencies]
Expand Down

0 comments on commit 2fcb643

Please sign in to comment.