tim@fox:~/repo/gitopolis (main*)
$ ./upgrade-crates.sh
#!/bin/sh -v
set -e # exit on error
cargo update
Updating crates.io index
cargo install cargo-edit
Updating crates.io index
Ignored package `cargo-edit v0.12.2` is already installed, use --force to override
cargo upgrade --incompatible # from cargo-edit
Error: The repo at path /home/tim/.asdf/installs/rust/1.77.1/registry/index/github.com-1ecc6299db9ec823 is unusable due to having an invalid HEAD reference: reference 'refs/heads/master' not found; class=Reference (4); code=NotFound (-3)
See https://github.com/killercup/cargo-edit/issues/411#issuecomment-2038427816