Closed dimfeld closed 1 month ago
This should be fixed in v14.0.1
I think? What version of cargo-update do you have?
Latest version, 14.1. Also tested against latest main
although I think they're identical.
edit: I think this broke in 14.0.2
they are... and it would be, yes. we check if !config || config == default
, and default config.from_transient
is false, so if there is an empty transient config, then that check fails yeah
Can you try the current master
branch (at least a2d28fa3108d571f216e084873d4959038c62ca4)?
Yes, that worked. Thanks!
Released in v14.1.1
I believe this broke with the recent addition from
from_transient
to PackageConfig.from_transient
is true when .crates2.json exists, and so the comparison between the config and its default returns false when deciding to use binstall or not.I cloned the code and added a few print statements to verify that this was the problem.
To reproduce:
Most obvious fix would be to skip the
from_transient
field when comparing the configs, but I don't know if that's actually the proper fix.Workaround: Delete ~/.cargo/.crates2.json and don't use
cargo-install