Coder Social home page Coder Social logo

Comments (15)

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

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.

letheed avatar letheed commented on August 26, 2024

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 that cargo-edit "needs update" although I just ran cargo 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.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

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.

letheed avatar letheed commented on August 26, 2024

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.

letheed avatar letheed commented on August 26, 2024

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.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

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.

letheed avatar letheed commented on August 26, 2024

Yeah, I'm honestly not sure whether this is a cargo bug or if this is the expected behavior.

Thanks!

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

Were I you, I'd pop an issue over at https://github.com/rust-lang/cargo either way.

from cargo-update.

letheed avatar letheed commented on August 26, 2024

Yeah, I'll go ask over there.

from cargo-update.

letheed avatar letheed commented on August 26, 2024

Cargo issue: rust-lang/cargo#4321

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

BTW it's cargo install-update not cargo update-installed

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

Can you try if current master works for you (it does for me, but you never know)? Will release if so.

from cargo-update.

letheed avatar letheed commented on August 26, 2024

Yeah, I edited my msg. Sorry, I haven't slept in two days. -__-

Sure I'll do that.

from cargo-update.

letheed avatar letheed commented on August 26, 2024

It's all good for me.

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

Released in v1.1.2

from cargo-update.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.