Comments (9)
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.
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.
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.
There is definitively something fishy there:
- Using
GO111MODULE=on go get -u github.com/dedis/drand
fails as explained above - Using
go get -u github.com/dedis/drand
works and add a drand binary in the $GOBIN, but then you have to useGO111MODULE=on go build
to build - 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.
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.
@Daeinar Indeed, it seems that a8c85aa
fixed the problem with undefined: kyber.Groupable
!
from drand.
Interestingly, it did not fix the problem when running :
GO111MODULE=on go get -u github.com/dedis/drand@master
😣
from drand.
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.
It now works because drand is in its own organisation and has forked off kyber.
from drand.
Related Issues (20)
- Ensure that the GenesisTime is always a multiple of 10
- Discard partial from nodes not in the group file earlier than bls signature verification
- Improve Randomness Extraction
- Stop processing partials after we've already aggregated the beacon HOT 1
- Add the used DB backend to the peers' metrics HOT 1
- Evicted nodes continue to send shares
- membd backend sync from 0 when the network is in catchup HOT 1
- Support `--hash-list` flag for gossipsub relay
- Refactor the CLI code to make the output configurable and not global
- API returns 500 instead of 4xx if no beacon handler for chain hash
- Replace github.com/ipfs/go-ds-badger2 with go.etcd.io/bbolt
- Whether Drand runs on an asynchronous network HOT 2
- rpc error exists when the drand beacon is started HOT 22
- re-add metadata to docker release
- [DKG] Consider adding an option to set future genesis date
- Tear out the clients into their own repo
- Information: weaveworks/common repo is likely to be archived
- DevX: Add HTTP 200 welcome page on API root
- `status --all` not working anymore in v2
- DKG timing & access HOT 3
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 drand.