GithubHelp home page GithubHelp logo

Comments (9)

nikkolasg avatar nikkolasg commented on April 30, 2024

Have you tried using GO111MODULE=on go get -u github.com/dedis/drand ?
The go.mod file should take the right branch into account. However, the module feature is not enabled by default inside regular repository (i.e. like github.com/.... ) and we need to export the variable GO111MODULE=on first.
But this makes me think that I have to update the readme to explicitely say that.

from drand.

AnomalRoil avatar AnomalRoil commented on April 30, 2024

Right, I forgot about it, but this time it is failing because of:

$> rm -rf drand
$> GO111MODULE=on go get -u github.com/dedis/drand
build github.com/dedis/drand: cannot load github.com/dedis/kyber: cannot find module providing package github.com/dedis/kyber

Am I missing something else?

from drand.

AnomalRoil avatar AnomalRoil commented on April 30, 2024

I can try and download the drand package using

$> go get -u github.com/dedis/drand

which works (but module are not in use there) [Edit: it seems it is somehow finding and using the right module to build the binary in the $GOBIN ??]
And then I can try and tidy the modules using:

$> cd $GOPATH/src/github.com/dedis/drand
$> GO111MODULE=on go mod tidy
go: downloading go.dedis.ch/kyber/v3 v3.0.3-0.20190426163307-88c7f0c6c771

And then the build works, but you have to keep using the GO111MODULE=on variable:

GO111MODULE=on go build

from drand.

AnomalRoil avatar AnomalRoil commented on April 30, 2024

There is definitively something fishy there:

  1. Using GO111MODULE=on go get -u github.com/dedis/drand fails as explained above
  2. Using go get -u github.com/dedis/drand works and add a drand binary in the $GOBIN, but then you have to use GO111MODULE=on go build to build
  3. I couldn't reproduce my first attempt where a plain go get -u failed, but it might have been related to outdated dependencies in my GOPATH that somehow caused it to fail.

The error about cannot load github.com/dedis/kyber is really strange since this URL appears nowhere excepted in Kyber's README.md file?!

from drand.

Daeinar avatar Daeinar commented on April 30, 2024

Fyi, I've just reinstalled and built drand via go get -u github.com/dedis/drand and go build
and everything has worked out just fine (without using GO111MODULE=on go get ..., etc.).

from drand.

AnomalRoil avatar AnomalRoil commented on April 30, 2024

@Daeinar Indeed, it seems that a8c85aa fixed the problem with undefined: kyber.Groupable!

from drand.

AnomalRoil avatar AnomalRoil commented on April 30, 2024

Interestingly, it did not fix the problem when running :
GO111MODULE=on go get -u github.com/dedis/drand@master 😣

from drand.

AnomalRoil avatar AnomalRoil commented on April 30, 2024

Okay, now it works using go get and go build because of the vendor folder that is actually taking over Go modules when Go modules are disabled, like for example when you're in the GOPATH, which is the case using go get.

from drand.

nikkolasg avatar nikkolasg commented on April 30, 2024

It now works because drand is in its own organisation and has forked off kyber.

from drand.

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.