Skip to content

cargo upgrade is bumping dependencies incompatible with specified rust version #956

@jaques-sam-tlv

Description

@jaques-sam-tlv

First things first, this is a great tool!!

My version is:

❯ cargo upgrade --version
cargo-edit-upgrade 0.13.8

Just having issues with the cargo upgrade command in a repository where we can't use a higher rust version than 1.82.

Our toolchain (rust-toolchain.toml) file looks like this:

[toolchain]
channel = "1.82.0"

When executing:
cargo upgrade and afterwards run the tests, we get:

❯ cargo test
error: rustc 1.82.0 is not supported by the following packages:
  icu_collections@2.1.1 requires rustc 1.83
  icu_locale_core@2.1.1 requires rustc 1.83
  icu_normalizer@2.1.1 requires rustc 1.83
  icu_normalizer_data@2.1.1 requires rustc 1.83
  icu_normalizer_data@2.1.1 requires rustc 1.83
  icu_normalizer_data@2.1.1 requires rustc 1.83
  icu_properties@2.1.1 requires rustc 1.83
  icu_properties_data@2.1.1 requires rustc 1.83
  icu_properties_data@2.1.1 requires rustc 1.83
  icu_properties_data@2.1.1 requires rustc 1.83
  icu_provider@2.1.1 requires rustc 1.83
Either upgrade rustc or select compatible dependency versions with
`cargo update <name>@<current-ver> --precise <compatible-ver>`
where `<compatible-ver>` is the latest version supporting rustc 1.82.0

This doesn't help either:
cargo upgrade --rust-version 1.82.0

This feels like a bug, the packages are clearly saying 1.82 is not supported, yet it's updating them.
Thanks for looking into it!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions