Giter VIP home page Giter VIP logo

Comments (4)

AustinFoss avatar AustinFoss commented on June 28, 2024

It's really odd (okay, I didn't just stop there and kept digging), when I compared the two interfaces:

Boxo: https://github.com/ipfs/boxo/blob/main/coreiface/coreapi.go
go-ipfs: https://github.com/ipfs/interface-go-ipfs-core/blob/master/coreapi.go

They're identical near as I can tell so it's only throwing the error because the two interfaces, despite matching at the interface level have different BlockAPI() functions.

from kubo.

lidel avatar lidel commented on June 28, 2024

@AustinFoss are you still experiencing this? We've been refactoring a lot of libraries and moving things around last quarter, it works now, maybe you were unlucky month ago?

If the issue si still present, mind sending your go.mod file from kubo-as-a-library?

ps. kubo-as-a-library is a legacy example, we now have a more composable SDK at https://github.com/ipfs/boxo, which may serve you bit better

from kubo.

github-actions avatar github-actions commented on June 28, 2024

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

from kubo.

AustinFoss avatar AustinFoss commented on June 28, 2024

Seems you are correct and I was just a little unlucky with my timing. Created a fresh go working directory and copy pasted the main.go file from the this repo's /docs/examples/kubo-as-alibrary folder to my fresh directory. Ran go mod init <my-project>, go mod tidy, and changed the path variables at lines 227 & 228; works just as intended now without needing to be part of this parent repo.

Closing this issue.

Per your recommendation of boxo; yes I came across it at the time of writing this but at the time I just wanted an existing implementation that had already been tested and just tweak the libp2p part of it, and not build my own implementation from scratch which is what boxo seems to be. From it's README page, "A library for building IPFS applications and implementations." Will investigate boxo a little more as time allows.

from kubo.

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.