Code Monkey home page Code Monkey logo

Comments (10)

vdice avatar vdice commented on July 23, 2024

Actually, I may have this wrong. I don't see Bartholomew using wasi-experimental-http directly, it is just in the Cargo.lock. Perhaps what is necessary is to bump the spin SDK version?

from bartholomew.

karthik2804 avatar karthik2804 commented on July 23, 2024

I just tested it and the SDK version is not causing it. It is a dependency handlebars-sprig which causes this. Downgrading that to v0.2.0 solves this.

v0.3.0 introduced the tweets and gists functions which rely on wasi_experimental_http. I am not sure what the approach towards this must be.

from bartholomew.

vdice avatar vdice commented on July 23, 2024

Thanks for checking this out, @karthik2804. Interesting... would we lose functionality if we go with the v0.2.0 downgrade?

from bartholomew.

rajatjindal avatar rajatjindal commented on July 23, 2024

i had been working on a branch to fix it. but don't have a fix for it right now. v0.3.0 was working fine with Bartholomew when we released it first. i am not too sure why it stopped working

downgrading to v0.2.0 will lose tweets/gists embedding functionality. we can downgrade until we can fix it?

from bartholomew.

karthik2804 avatar karthik2804 commented on July 23, 2024

It doesn't work because one of the latest commits to spin removed support for wasi-experimental-http (fermyon/spin#699) as mentioned in the OP. It will still work with Bartholomew when using spin built from a commit prior to that.

from bartholomew.

radu-matei avatar radu-matei commented on July 23, 2024

Yeah, we don't need to remove functionality — rather than using the bespoke wasi_experimental_http crate, it can use the Spin SDK directly, or import wasi_outbound_http from Spin.

from bartholomew.

rajatjindal avatar rajatjindal commented on July 23, 2024

I was able to get it working with spin sdk, but not able to publish new release as it needs a released version of spin-sdk.

Is that something we can do @radu-matei ?

I will spend more time on it tomorrow and will try to get a release pushed (worst case try to implement outbound http in handlebars sprig repo).

Thank you everyone for the inputs.

from bartholomew.

karthik2804 avatar karthik2804 commented on July 23, 2024

@rajatjindal can we not just switch from using a release of handlebars-sprig in Bartholomew to using a git as a source in the dependancy?

from bartholomew.

rajatjindal avatar rajatjindal commented on July 23, 2024

We can, i was just not sure of it will be acceptable.

If the team is ok with that, i am happy to open pr for it.

from bartholomew.

radu-matei avatar radu-matei commented on July 23, 2024

That definitely works, @rajatjindal!
Thank you!

from bartholomew.

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.