Comments (7)
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
- "Priority" labels will show how urgent this is for the team.
- "Status" labels will show if this is ready to be worked on, blocked, or in progress.
- "Need" labels will indicate if additional input or analysis is required.
Finally, remember to use https://discuss.ipfs.io if you just need general support.
from go-ipfs-example-plugin.
I think Kubo is compiled with go1.19.10 and this error is related to using a newer version of go to compile the plugin.
from go-ipfs-example-plugin.
@emendir do you still get this error when using the latest go (0.20.x) and kubo (0.21.0) ?
from go-ipfs-example-plugin.
Thanks for your suggestion.
I'm assuming you meant go 1.20.x instead of go 0.20.x
The result of testing go 1.20.5 together with kubo 0.21.0 was the following:
The make build
step failed with the following error:
./set-target.sh v0.14.0
go build -trimpath -buildmode=plugin -o "example-plugin.so" "main/main.go"
# github.com/lucas-clemente/quic-go/internal/qtls
~/go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/qtls/go119.go:6:13: cannot use "The version of quic-go you're using can't be built on Go 1.19 yet. For more details, please see https://github.com/lucas-clemente/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.19 yet. F...) as int value in variable declaration
make: *** [Makefile:31: example-plugin.so] Error 1
As far as I understand it seems to be complaining that a dependency of kubo 0.21.0 doesn't yet work with go 1.19, from which I infer it won't doesn't with go 0.20.5 either.
from go-ipfs-example-plugin.
Just to clarify, the latest dist.ipfs.io releases of Kubo are built with go 1.19.10, so plugins need to be built with that.
You can build Kubo with a newer version of Go yourself, and then use that for the plugin too (I don't know if you did).
from go-ipfs-example-plugin.
@emendir did you try building kubo and the plugin with the same version of Go (as is required for Go plugins) as was suggested above? Note: the version of Go that kubo is built with on dist.ipfs.io is described in the build file https://dist.ipfs.tech/kubo/v0.21.0/build-info and kubo has ipfs version --all
which will tell you the Go version as well.
from go-ipfs-example-plugin.
iiuc Hector provided useful README update in #30 about using the matching version of Go
Support for Go >1.20 is out of scope here (we will add support when Go 1.21 is out, ETA Kubo 0.23).
from go-ipfs-example-plugin.
Related Issues (6)
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 go-ipfs-example-plugin.