Comments (4)
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.
- go-ipfs: https://github.com/ipfs/interface-go-ipfs-core/blob/master/options/block.go
- boxo: https://github.com/ipfs/boxo/blob/main/coreiface/block.go
from kubo.
@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.
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.
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)
- Sandboxing for MFS, Keys, IPNS HOT 1
- ipfs key sign|verify HOT 3
- Changed option is ignored HOT 1
- Don't convert the host name specified with --api=/dns4/<domain>/ into an IP address (thus making life easy for reverse proxy) HOT 1
- Gateway docs need to be updated to reflect supported features HOT 1
- dag import: errors with IPLD test vectors
- Optional Live production tracing
- Fuse functionality broken in v0.24.0
- Unexpected quick connection retries to the same host: Outgoing DDoS Detection by Hetzner HOT 9
- Leverage Content Path Affinity in routing HOT 1
- Incorrect repo size reported by `repo stat` HOT 5
- Ipfs add --copy should replace duplicate blocks
- dag import of CARv2 produces "Error: operation not supported" HOT 2
- Release 0.26 HOT 7
- Copying /ipfs/{cid} to MFS changes CID in some cases
- client/rpc: support for mfs (files) api HOT 1
- Mount error due to user_allow_other not in /etc/fuse.conf even though it is HOT 2
- Better self-service commands for DHT providing HOT 3
- IPFS not announcing CIDs on indirect peers HOT 8
- get linux core error when restart ipfs in docker container
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 kubo.