Coder Social home page Coder Social logo

Comments (7)

FrankReh avatar FrankReh commented on June 23, 2024 1

I believe the find yesterday was that the install command should use --locked and a PR was submitted and accepted yesterday too.

You may want to try cargo install cargo-component --locked if memory serves.

from cargo-component.

calvinrp avatar calvinrp commented on June 23, 2024 1

Merged #288 and resolved this issue.

from cargo-component.

kajacx avatar kajacx commented on June 23, 2024

Yep, in warg-client 0.4.1 it's:

pub fn get_warg_registry(&self) -> &Option<RegistryDomain>

But in warg-client 0.4.2 (and 0.4.3) it's:

pub async fn get_warg_registry(
    &self,
    namespace: &str
) -> Result<Option<RegistryDomain>, ClientError>

I'll create an issue on the warg-client repo as well, but I think it can be "hotfixed" (for cargo component) by locking the dependency version to 0.4.1.

from cargo-component.

kajacx avatar kajacx commented on June 23, 2024

warg-protocol also has a breaking change between 0.4.1 and 0.4.2:

// 0.4.1
pub fn namespace_state(
    &self,
    namespace: &str
) -> Result<Option<&NamespaceState>, &str>

// 0.4.2
pub fn namespace_state(&self, namespace: &str) -> Option<&NamespaceState>

from cargo-component.

calvinrp avatar calvinrp commented on June 23, 2024

We are trying to find someone with permission to yank the warg releases. The releases should have increased the minor version since there changes to the exported functions.

Also, #288 would fix.

from cargo-component.

calvinrp avatar calvinrp commented on June 23, 2024

Released 0.4.4 as a re-release of 0.4.1 that reverts the breaking changes. Also, we are in the progress of yanking 0.4.2 and 0.4.3 on crates.

from cargo-component.

kajacx avatar kajacx commented on June 23, 2024

Also, #288 would fix.

yea, I think it would be better to just switch to the 0.5.0 version of the warg crates and be done with it.

from cargo-component.

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.