Skip to content

Stop trying to use minimal versions #794

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

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions scripts/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,8 @@ for crate in $(get_crates); do
update_crate "$crate" "$(cargo_info_version "$crate")"
done

# TODO(https://github.com/rust-lang/cargo/issues/10307): Remove the loop and inline.
update_breaking() {
while ! x cargo -Z unstable-options update --manifest-path=$1 --breaking; do
t 'Manually fix the issue with `cargo update <spec>` and hit ENTER'
read garbage
done
}
for crate in $TOPOLOGICAL_ORDER; do
update_breaking crates/$crate/Cargo.toml
done
for path in $(git ls-files '*/Cargo.toml'); do
update_breaking $path
./scripts/wrapper.sh cargo upgrade --manifest-path=$path --incompatible=allow
done

( cd examples/assemblyscript
Expand Down
1 change: 1 addition & 0 deletions scripts/wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ case "$1" in
cargo)
case "$2" in
bloat) ensure_cargo cargo-bloat 0.12.1 ;;
upgrade) ensure_cargo cargo-edit 0.13.1 ;;
*) e "Wrapper does not support 'cargo $2'" ;;
esac
;;
Expand Down