Giter Site home page Giter Site logo

Comments (7)

welcome avatar welcome commented on September 12, 2024

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.

hsanjuan avatar hsanjuan commented on September 12, 2024

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.

lidel avatar lidel commented on September 12, 2024

@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.

emendir avatar emendir commented on September 12, 2024

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.

hsanjuan avatar hsanjuan commented on September 12, 2024

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.

aschmahmann avatar aschmahmann commented on September 12, 2024

@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.

lidel avatar lidel commented on September 12, 2024

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 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.