mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 04:17:44 +08:00
The code example for using IPFS as a library doesn't run unless indirect dependencies are updated: ``` $ go version go version go1.17 linux/amd64 $ uname -a Linux home 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux $ go run main.go go: github.com/ipfs/go-ipfs@v0.9.1 requires github.com/ipfs/go-bitswap@v0.4.0: missing go.sum entry; to add it: go mod download github.com/ipfs/go-bitswap go: github.com/ipfs/go-ipfs@v0.9.1 requires github.com/ipfs/go-bitswap@v0.4.0: missing go.sum entry; to add it: go mod download github.com/ipfs/go-bitswap ``` Remedied by: ``` $ go mod tidy $ go run main.go -- Getting an IPFS node running -- Spawning node on a temporary repo ... ``` Also, require go version 1.16, otherwise, example can fail under go 1.15 with errors like: ``` go build github.com/lucas-clemente/quic-go/internal/qtls: build constraints exclude all Go files in /home/jbouwman/go/pkg/mod/github.com/lucas-clemente/quic-go@v0.23.0/internal/qtls ``` |
||
|---|---|---|
| .. | ||
| examples | ||
| production | ||
| add-code-flow.md | ||
| AUTHORS | ||
| cli-http-api-core-diagram.png | ||
| command-completion.md | ||
| config.md | ||
| datastores.md | ||
| debug-guide.md | ||
| developer-certificate-of-origin | ||
| EARLY_TESTERS.md | ||
| environment-variables.md | ||
| experimental-features.md | ||
| file-transfer.md | ||
| fuse.md | ||
| gateway.md | ||
| generate-authors.sh | ||
| implement-api-bindings.md | ||
| PATCH_RELEASE_TEMPLATE.md | ||
| plugins.md | ||
| README.md | ||
| RELEASE_ISSUE_TEMPLATE.md | ||
| releases.md | ||
| snap.md | ||
| transports.md | ||
| windows.md | ||
Developer Documentation and Guides
If you are looking for User Documentation & Guides, please visit docs.ipfs.io.
If you’re experiencing an issue with IPFS, please follow our issue guide when filing an issue!
Otherwise, check out the following guides to using and developing IPFS:
Developing go-ipfs
- First, please read the Contributing Guidelines for IPFS projects and then the Contributing Guidelines for go-ipfs specifically
- Building on…
- Performance Debugging Guidelines
- Release Checklist
Guides
- How to Implement an API Client
- Connecting with Websockets — if you want
js-ipfsnodes in web browsers to connect to yourgo-ipfsnode, you will need to turn on websocket support in yourgo-ipfsnode.
Advanced User Guides
- Transferring a File Over IPFS
- Configuration reference
- Installing command completion
- Mounting IPFS with FUSE
- Installing plugins
- Setting up an IPFS Gateway
Other
- Thanks to all our contributors ❤️ (We use the
generate-authors.shscript to regenerate this list.) - How to file a GitHub Issue