Comments (15)
What do you mean by "deprecates"? It looks to me like you have two versions installed, which is handled as one would expect. I mean, unique()
ing on max()
is a pretty simple fix, but... idk, something doesn't feel right about this.
from cargo-update.
I mean cargo-edit
0.1.6 provided ["cargo-add", "cargo-list", "cargo-rm"].
cargo-edit
0.2.0 provides ["cargo-add", "cargo-rm", "cargo-upgrade"].
-
The first problem is that
cargo install-update -al
now says thatcargo-edit
"needs update" although I just rancargo install-update cargo-edit
and v0.2.0 is already installed. -
The second problem is that if I run
cargo install-update cargo-edit
again it will compile and install v0.2.0 again even though it isn't needed because we're already up-to-date.
from cargo-update.
So you have two versions of cargo-edit
? Did that happen naturally or how did you do that?
From the "business logic" standpoint that behaviour is correct – cargo-edit-v0.1.6
needs to update to cargo-edit-v0.2.0
, but specialcasing "there's two versions of the same thing for some reason" to "there's one with max()
version" might make sense.
from cargo-update.
Well I had cargo-edit
0.1.6 installed. I updated it with cargo install-update cargo-edit
.
cargo-list
was not removed automatically, and so now .crates.toml
ends up listing both versions side by side.
from cargo-update.
I don't really have both version installed at the same time, because cargo-add
and cargo-rm
are from 0.2.0. So they are not necessarily compatible with 0.1.6.
from cargo-update.
That's weird, that'd mean that cargo install -f cargo-edit
didn't remove the old one, which would make this a cargo bug (or feature).
I'll make a specialcase for this, sure.
from cargo-update.
Yeah, I'm honestly not sure whether this is a cargo bug or if this is the expected behavior.
Thanks!
from cargo-update.
Were I you, I'd pop an issue over at https://github.com/rust-lang/cargo either way.
from cargo-update.
Yeah, I'll go ask over there.
from cargo-update.
Cargo issue: rust-lang/cargo#4321
from cargo-update.
BTW it's cargo install-update
not cargo update-installed
from cargo-update.
Can you try if current master works for you (it does for me, but you never know)? Will release if so.
from cargo-update.
Yeah, I edited my msg. Sorry, I haven't slept in two days. -__-
Sure I'll do that.
from cargo-update.
It's all good for me.
from cargo-update.
Released in v1.1.2
from cargo-update.
Related Issues (20)
- Listing packages doesn't include those installed via `--git` HOT 4
- Is there a way to specify the number of threads to use? HOT 4
- Failure when using source replacement HOT 3
- error: registry index was not found in any configuration: `rsproxy-sparse` HOT 5
- Keep the features HOT 3
- Fails behind corporate proxy (but plain cargo install works) HOT 10
- respect previously defined feature flags when updating HOT 6
- Installing from source causes `cargo install` PATH warning on Windows due to path canonicalization HOT 7
- Internal matching of custom registry and source for sparse indices fails HOT 1
- Auto configuration error HOT 6
- Build fails on macOS 14.4.1 HOT 1
- build fails on arch linux 6.8.7-arch1-1 HOT 1
- `install.root` is not properly followed HOT 2
- Is there a way to list only packages in need of update? HOT 1
- Add --rate-limit flag HOT 2
- Unable to list/update packages after installing package using cargo binstall --git HOT 5
- When called from topgrade `cargo-install-update` under WSL fails to find some file or directory. HOT 5
- Prompt user before performing updates HOT 1
- FR: An option to disable some of `cargo binstall`'s strategies HOT 1
- Update to newer prerelease HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-update.