ssbc / go-ssb

Go implementation of ssb (work in progress!)
https://scuttlebutt.nz
165 stars 23 forks source link

[Compilation error] go: error loading module requirements #53

Closed zicmama closed 4 years ago

zicmama commented 4 years ago
sudo apt install golang-1.14
export PATH=$PATH:/usr/local/go/bin
git clone https://github.com/cryptoscope/ssb.git go-sbot
cd go-sbot/cmd/go-sbot/

go build -v -i
go: finding github.com/catherinejones/testdiff v0.0.0-20180525195050-ae148f75f077
go: finding github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d
Fetching https://go.cryptoscope.co/secretstream?go-get=1
go: finding github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973
go: finding github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910
go: finding github.com/prometheus/client_golang v0.9.1
Fetching https://golang.org/x/sys?go-get=1
go: finding github.com/gogo/protobuf v1.1.1
go: finding github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
go: finding github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
go: finding github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7
go: finding github.com/ugorji/go/codec v0.0.0-20190126102652-8fd0f8d918c8
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
get "golang.org/x/sys": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys?go-get=1
go: finding golang.org/x/sys v0.0.0-20190124100055-b90733256f2e
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
get "golang.org/x/net": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net?go-get=1
go: finding golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3
go: github.com/catherinejones/testdiff@v0.0.0-20180525195050-ae148f75f077: git fetch -f https://github.com/catherinejones/testdiff refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/fred/go/pkg/mod/cache/vcs/a6ef7cffc03906c1219d9d15bc4776afe3583e713a02c67cba3b7602fe594b66: exit status 128:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
go: finding github.com/shurcooL/go v0.0.0-20190121191506-3fef8c783dec
Fetching https://go.cryptoscope.co/librarian?go-get=1
go: finding github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f
Parsing meta tags from https://go.cryptoscope.co/secretstream?go-get=1 (status code 200)
get "go.cryptoscope.co/secretstream": found meta tag get.metaImport{Prefix:"go.cryptoscope.co/secretstream", VCS:"git", RepoRoot:"https://github.com/cryptoscope/secretstream"} at https://go.cryptoscope.co/secretstream?go-get=1
go: finding go.cryptoscope.co/secretstream v1.1.4-0.20190911135450-b2c157275a98
Parsing meta tags from https://go.cryptoscope.co/librarian?go-get=1 (status code 200)
get "go.cryptoscope.co/librarian": found meta tag get.metaImport{Prefix:"go.cryptoscope.co/librarian", VCS:"git", RepoRoot:"https://github.com/cryptoscope/librarian"} at https://go.cryptoscope.co/librarian?go-get=1
go: finding go.cryptoscope.co/librarian v0.1.1
go: go.cryptoscope.co/secretstream@v1.1.4-0.20190911135450-b2c157275a98: unknown revision b2c157275a98
go: error loading module requirements

uname -a Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux

cryptix commented 4 years ago

hmm.. that's odd.

I cleaned up the dependencies. Can you try again with 079b278 as HEAD?

zicmama commented 4 years ago
Fetching https://go.cryptoscope.co/secretstream?go-get=1
go: finding github.com/hashicorp/go-multierror v1.1.0
go: finding github.com/prometheus/client_golang v1.3.0
Fetching https://golang.org/x/sys?go-get=1
go: finding github.com/go-kit/kit v0.10.0
go: finding github.com/matryer/is v1.3.0
Fetching https://go.cryptoscope.co/margaret?go-get=1
Fetching https://go.cryptoscope.co/luigi?go-get=1
go: finding github.com/dgryski/go-farm v0.0.0-20180109070241-2de33835d102
go: finding github.com/golang/protobuf v1.0.0
Fetching https://golang.org/x/net?go-get=1
Parsing meta tags from https://go.cryptoscope.co/secretstream?go-get=1 (status code 200)
get "go.cryptoscope.co/secretstream": found meta tag get.metaImport{Prefix:"go.cryptoscope.co/secretstream", VCS:"git", RepoRoot:"https://github.com/cryptoscope/secretstream"} at https://go.cryptoscope.co/secretstream?go-get=1
Parsing meta tags from https://go.cryptoscope.co/luigi?go-get=1 (status code 200)
get "go.cryptoscope.co/luigi": found meta tag get.metaImport{Prefix:"go.cryptoscope.co/luigi", VCS:"git", RepoRoot:"https://github.com/cryptoscope/luigi"} at https://go.cryptoscope.co/luigi?go-get=1
Parsing meta tags from https://go.cryptoscope.co/margaret?go-get=1 (status code 200)
get "go.cryptoscope.co/margaret": found meta tag get.metaImport{Prefix:"go.cryptoscope.co/margaret", VCS:"git", RepoRoot:"https://github.com/cryptoscope/margaret"} at https://go.cryptoscope.co/margaret?go-get=1
go: finding go.cryptoscope.co/secretstream v1.2.2
go: finding go.cryptoscope.co/luigi v0.3.0
go: finding go.cryptoscope.co/margaret v0.1.6
Parsing meta tags from https://golang.org/x/net?go-get=1 (status code 200)
get "golang.org/x/net": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at https://golang.org/x/net?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
get "golang.org/x/sys": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.org/x/sys?go-get=1
go: finding golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9
go: finding golang.org/x/net v0.0.0-20180406214816-61147c48b25b
go: finding github.com/dgraph-io/badger v1.3.0
go: finding github.com/prometheus/client_model v0.1.0
go: finding github.com/lightstep/lightstep-tracer-go v0.18.1
Fetching https://go.etcd.io/etcd?go-get=1
Parsing meta tags from https://go.etcd.io/etcd?go-get=1 (status code 200)
get "go.etcd.io/etcd": found meta tag get.metaImport{Prefix:"go.etcd.io/etcd", VCS:"git", RepoRoot:"https://github.com/etcd-io/etcd"} at https://go.etcd.io/etcd?go-get=1
go: finding go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
go: finding github.com/hudl/fargo v1.3.0
go: finding go.cryptoscope.co/margaret v0.0.5
go: finding github.com/cespare/xxhash/v2 v2.1.1
go: finding github.com/nats-io/nats-server/v2 v2.1.2
go: finding github.com/apache/thrift v0.13.0
go: finding github.com/opentracing/basictracer-go v1.0.0
go: finding github.com/openzipkin/zipkin-go v0.2.2
go: finding github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8
go: finding github.com/oklog/oklog v0.3.2
go: finding github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5
go: finding github.com/pact-foundation/pact-go v1.0.4
go: finding github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
go: finding github.com/gogo/protobuf v1.2.1
Fetching https://google.golang.org/grpc?go-get=1
go: finding github.com/aws/aws-sdk-go-v2 v0.18.0
Parsing meta tags from https://google.golang.org/grpc?go-get=1 (status code 200)
get "google.golang.org/grpc": found meta tag get.metaImport{Prefix:"google.golang.org/grpc", VCS:"git", RepoRoot:"https://github.com/grpc/grpc-go"} at https://google.golang.org/grpc?go-get=1
go: finding google.golang.org/grpc v1.26.0
go: finding google.golang.org/grpc v1.21.0
go: finding github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec
go: finding github.com/dgraph-io/badger v1.5.3
go: finding github.com/performancecopilot/speed v3.0.0+incompatible
go: finding github.com/nats-io/nats.go v1.9.1
go: finding github.com/eapache/queue v1.1.0
go: finding github.com/gorilla/mux v1.7.3
go: finding golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7
go: finding github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa
go: finding github.com/catherinejones/testdiff v0.0.0-20180525195050-ae148f75f077
Fetching https://gopkg.in/cheggaaa/pb.v1?go-get=1
go: finding google.golang.org/grpc v1.22.1
go: finding google.golang.org/grpc v1.23.1
go: finding github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a
go: finding golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456
Parsing meta tags from https://gopkg.in/cheggaaa/pb.v1?go-get=1 (status code 200)
get "gopkg.in/cheggaaa/pb.v1": found meta tag get.metaImport{Prefix:"gopkg.in/cheggaaa/pb.v1", VCS:"git", RepoRoot:"https://gopkg.in/cheggaaa/pb.v1"} at https://gopkg.in/cheggaaa/pb.v1?go-get=1
go: finding gopkg.in/cheggaaa/pb.v1 v1.0.25
go: finding github.com/cryptix/go v1.3.1
go: github.com/catherinejones/testdiff@v0.0.0-20180525195050-ae148f75f077: git fetch -f https://github.com/catherinejones/testdiff refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/fred/go/pkg/mod/cache/vcs/a6ef7cffc03906c1219d9d15bc4776afe3583e713a02c67cba3b7602fe594b66: exit status 128:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled
go: finding github.com/sony/gobreaker v0.4.1
go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4
go: finding github.com/creack/pty v1.1.7
go: finding github.com/sirupsen/logrus v1.4.2
go: finding github.com/openzipkin/zipkin-go v0.2.1
go: finding github.com/hashicorp/golang-lru v0.5.1
Fetching https://go.etcd.io/bbolt?go-get=1
Parsing meta tags from https://go.etcd.io/bbolt?go-get=1 (status code 200)
get "go.etcd.io/bbolt": found meta tag get.metaImport{Prefix:"go.etcd.io/bbolt", VCS:"git", RepoRoot:"https://github.com/etcd-io/bbolt"} at https://go.etcd.io/bbolt?go-get=1
go: finding github.com/fatih/color v1.7.0
go: finding go.etcd.io/bbolt v1.3.3
go: finding github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927
go: finding github.com/grpc-ecosystem/grpc-gateway v1.9.5
go: finding github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94
go: finding golang.org/x/sys v0.0.0-20180406135729-3b87a42e500a
go: finding golang.org/x/sys v0.0.0-20191220142924-d4481acd189f
go: finding github.com/google/uuid v1.0.0
go: finding github.com/gogo/protobuf v1.2.0
go: finding github.com/ugorji/go v1.1.1
Fetching https://gopkg.in/warnings.v0?go-get=1
go: finding github.com/go-logfmt/logfmt v0.5.0
go: finding github.com/nats-io/jwt v0.3.2
go: finding github.com/mattn/go-colorable v0.0.9
Parsing meta tags from https://gopkg.in/warnings.v0?go-get=1 (status code 200)
get "gopkg.in/warnings.v0": found meta tag get.metaImport{Prefix:"gopkg.in/warnings.v0", VCS:"git", RepoRoot:"https://gopkg.in/warnings.v0"} at https://gopkg.in/warnings.v0?go-get=1
go: finding gopkg.in/warnings.v0 v0.1.2
go: finding github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271
go: finding github.com/mattn/go-runewidth v0.0.2
go: finding github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8
go: finding github.com/coreos/go-semver v0.2.0
Fetching https://gopkg.in/gcfg.v1?go-get=1
Parsing meta tags from https://gopkg.in/gcfg.v1?go-get=1 (status code 200)
get "gopkg.in/gcfg.v1": found meta tag get.metaImport{Prefix:"gopkg.in/gcfg.v1", VCS:"git", RepoRoot:"https://gopkg.in/gcfg.v1"} at https://gopkg.in/gcfg.v1?go-get=1
go: finding gopkg.in/gcfg.v1 v1.2.3
go: finding github.com/Shopify/sarama v1.19.0
go: finding github.com/Shopify/toxiproxy v2.1.4+incompatible
go: finding golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
Fetching https://go.uber.org/multierr?go-get=1
go: finding github.com/soheilhy/cmux v0.1.4
go: finding github.com/smartystreets/goconvey v1.6.4
go: finding github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7
go: finding github.com/urfave/cli v1.20.0
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://go.uber.org/multierr?go-get=1 (status code 200)
get "go.uber.org/multierr": found meta tag get.metaImport{Prefix:"go.uber.org/multierr", VCS:"git", RepoRoot:"https://github.com/uber-go/multierr"} at https://go.uber.org/multierr?go-get=1
go: finding go.uber.org/multierr v1.1.0
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
get "golang.org/x/tools": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools?go-get=1
go: finding golang.org/x/tools v0.0.0-20200103221440-774c71fcf114
go: finding github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21
go: finding github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: finding github.com/AndreasBriese/bbloom v0.0.0-20170702084017-28f7e881ca57
go: finding github.com/nats-io/jwt v0.3.0
go: finding github.com/onsi/gomega v1.4.3
Fetching https://golang.org/x/time?go-get=1
Parsing meta tags from https://golang.org/x/time?go-get=1 (status code 200)
get "golang.org/x/time": found meta tag get.metaImport{Prefix:"golang.org/x/time", VCS:"git", RepoRoot:"https://go.googlesource.com/time"} at https://golang.org/x/time?go-get=1
go: finding golang.org/x/time v0.0.0-20191024005414-555d28b269f0
go: finding github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da
go: finding github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d
go: finding github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492
go: finding github.com/oklog/run v1.0.0
go: finding github.com/spf13/cobra v0.0.3
go: finding github.com/bgentry/speakeasy v0.1.0
go: finding github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1
Fetching https://sourcegraph.com/sourcegraph/appdash?go-get=1
Parsing meta tags from https://sourcegraph.com/sourcegraph/appdash?go-get=1 (status code 200)
get "sourcegraph.com/sourcegraph/appdash": found meta tag get.metaImport{Prefix:"sourcegraph.com/sourcegraph/appdash", VCS:"git", RepoRoot:"https://github.com/sourcegraph/appdash"} at https://sourcegraph.com/sourcegraph/appdash?go-get=1
go: finding sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0
go: finding github.com/json-iterator/go v1.1.8
go: finding github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a
go: finding github.com/aws/aws-sdk-go v1.27.0
go: finding github.com/hashicorp/consul/api v1.3.0
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding github.com/mattn/go-isatty v0.0.4
go: finding github.com/eapache/go-resiliency v1.1.0
go: finding github.com/aws/aws-lambda-go v1.13.3
go: finding github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db
go: finding github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf
Fetching https://go.cryptoscope.co/librarian?go-get=1
Parsing meta tags from https://go.cryptoscope.co/librarian?go-get=1 (status code 200)
get "go.cryptoscope.co/librarian": found meta tag get.metaImport{Prefix:"go.cryptoscope.co/librarian", VCS:"git", RepoRoot:"https://github.com/cryptoscope/librarian"} at https://go.cryptoscope.co/librarian?go-get=1
go: finding go.cryptoscope.co/librarian v0.1.0
go: finding golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
go: finding github.com/casbin/casbin/v2 v2.1.2
go: finding github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e
go: finding google.golang.org/grpc v1.20.0
go: finding github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4
go: finding github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c
go: finding github.com/jonboulle/clockwork v0.1.0
go: finding github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding github.com/opentracing/opentracing-go v1.1.0
go: finding github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5
go: finding go.cryptoscope.co/secretstream v1.1.4-0.20190911135450-b2c157275a98
Fetching https://go.uber.org/zap?go-get=1
go: finding github.com/nats-io/nuid v1.0.1
Parsing meta tags from https://go.uber.org/zap?go-get=1 (status code 200)
get "go.uber.org/zap": found meta tag get.metaImport{Prefix:"go.uber.org/zap", VCS:"git", RepoRoot:"https://github.com/uber-go/zap"} at https://go.uber.org/zap?go-get=1
go: finding github.com/hashicorp/go-version v1.2.0
go: finding go.uber.org/zap v1.10.0
go: finding github.com/nats-io/nkeys v0.1.0
go: finding github.com/google/btree v1.0.0
go: finding github.com/pborman/uuid v1.2.0
go: go.cryptoscope.co/secretstream@v1.1.4-0.20190911135450-b2c157275a98: unknown revision b2c157275a98
go: finding github.com/inconshreveable/mousetrap v1.0.0
go: finding github.com/cenkalti/backoff v2.2.1+incompatible
Fetching https://sigs.k8s.io/yaml?go-get=1
Fetching https://go.opencensus.io?go-get=1
go: finding github.com/prometheus/procfs v0.0.8
go: finding github.com/ugorji/go v1.1.2
go: finding github.com/nats-io/nkeys v0.1.3
go: finding github.com/opentracing/opentracing-go v1.0.2
go: finding github.com/gorilla/mux v1.6.2
go: finding github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2
go: finding github.com/prometheus/common v0.7.0
go: finding github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
Parsing meta tags from https://sigs.k8s.io/yaml?go-get=1 (status code 200)
get "sigs.k8s.io/yaml": found meta tag get.metaImport{Prefix:"sigs.k8s.io/yaml", VCS:"git", RepoRoot:"https://github.com/kubernetes-sigs/yaml"} at https://sigs.k8s.io/yaml?go-get=1
go: finding sigs.k8s.io/yaml v1.1.0
Parsing meta tags from https://go.opencensus.io?go-get=1 (status code 200)
get "go.opencensus.io": found meta tag get.metaImport{Prefix:"go.opencensus.io", VCS:"git", RepoRoot:"https://github.com/census-instrumentation/opencensus-go"} at https://go.opencensus.io?go-get=1
go: finding go.opencensus.io v0.20.2
go: finding go.opencensus.io v0.22.2
go: finding github.com/onsi/ginkgo v1.7.0
go: finding github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a
Fetching https://go.uber.org/atomic?go-get=1
Parsing meta tags from https://go.uber.org/atomic?go-get=1 (status code 200)
get "go.uber.org/atomic": found meta tag get.metaImport{Prefix:"go.uber.org/atomic", VCS:"git", RepoRoot:"https://github.com/uber-go/atomic"} at https://go.uber.org/atomic?go-get=1
go: finding go.uber.org/atomic v1.3.2
go: finding github.com/kisielk/errcheck v1.1.0
go: finding github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd
go: finding github.com/keks/persist v0.0.0-20180731151133-9546f7b3f97e
go: finding github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
go: finding github.com/spf13/pflag v1.0.1
go: finding go.uber.org/zap v1.13.0
go: error loading module requirements
cryptix commented 4 years ago

Ugh... as far as I can tell it’s still trying to pull a dependency I don’t even use anymore.

go: github.com/catherinejones/testdiff@v0.0.0-20180525195050-ae148f75f077: git fetch -f https://github.com/catherinejones/testdiff refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /home/fred/go/pkg/mod/cache/vcs/a6ef7cffc03906c1219d9d15bc4776afe3583e713a02c67cba3b7602fe594b66: exit status 128: fatal: could not read Username for 'https://github.com': terminal prompts disabled

I will try to make make double sure it’s gone from go.sum.. I don’t even know why “go mod tidy” doesn’t prune it....

cryptix commented 4 years ago

Can you try again with this environment variable set?

i.e.: GO111MODULE=on go build -v

(thought this was the default for a while now but something is off here..)

If it still fails, the output of go env could be helpful.

stapelberg commented 4 years ago

These instructions work for me:

% docker run -ti debian:sid
# apt update && apt install golang-1.14 git
# export PATH=$PATH:/usr/lib/go-1.14/bin
# cd /tmp
# git clone https://github.com/cryptoscope/ssb.git go-sbot
# cd go-sbot/cmd/go-sbot/
# go build -v -i
Expected output
go: downloading github.com/prometheus/client_golang v1.3.0
go: downloading go.cryptoscope.co/luigi v0.3.5
go: downloading go.cryptoscope.co/netwrap v0.1.1
go: downloading go.cryptoscope.co/muxrpc v1.5.4-0.20191205134222-b1563255bffa
go: downloading github.com/go-kit/kit v0.10.0
go: downloading go.cryptoscope.co/margaret v0.1.6
go: downloading github.com/cryptix/golang_x_crypto v0.0.0-20200303113948-2939d6771b24
go: downloading github.com/cryptix/go v1.5.0
go: downloading gonum.org/v1/gonum v0.0.0-20190904110519-2065cbd6b42a
go: downloading go.cryptoscope.co/secretstream v1.2.2
go: downloading github.com/hashicorp/go-multierror v1.1.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading modernc.org/kv v1.0.0
go: downloading github.com/go-logfmt/logfmt v0.5.0
go: downloading go.mindeco.de/ssb-gabbygrove v0.1.6
go: downloading github.com/keks/nocomment v0.0.0-20181007001506-30c6dcb4a472
go: downloading github.com/machinebox/progress v0.2.0
go: downloading github.com/RoaringBitmap/roaring v0.4.21-0.20190925020156-96f2302555b6
go: downloading github.com/hashicorp/errwrap v1.0.0
go: downloading github.com/keks/persist v0.0.0-20191006175951-43c124092b8b
go: downloading github.com/beorn7/perks v1.0.1
go: downloading modernc.org/lldb v1.0.0
go: downloading go.cryptoscope.co/librarian v0.2.0
go: downloading go.mindeco.de/ssb-multiserver v0.0.0-20200302144839-6902de33e194
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/prometheus/common v0.7.0
go: downloading github.com/prometheus/client_model v0.1.0
go: downloading modernc.org/zappy v1.0.0
go: downloading modernc.org/internal v1.0.0
go: downloading github.com/glycerine/go-unsnap-stream v0.0.0-20181221182339-f9677308dec2
go: downloading github.com/dgraph-io/badger v2.0.0-rc2+incompatible
go: downloading modernc.org/fileutil v1.0.1-0.20191220121946-b2535a37172b
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
go: downloading github.com/tinylib/msgp v1.1.0
go: downloading github.com/edsrzf/mmap-go v1.0.0
go: downloading golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7
go: downloading github.com/golang/protobuf v1.3.2
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2
go: downloading github.com/teivah/onecontext v0.0.0-20190805212053-7a1893e577e7
go: downloading modernc.org/mathutil v1.0.0
go: downloading modernc.org/sortutil v1.0.0
go: downloading github.com/prometheus/procfs v0.0.8
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/ugorji/go v1.1.7
go: downloading golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/ugorji/go/codec v1.1.7
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237
go: downloading github.com/philhofer/fwd v1.0.0
go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96
go: downloading golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2
go: downloading github.com/libp2p/go-reuseport v0.0.1
golang.org/x/crypto/internal/subtle
go.cryptoscope.co/secretstream/internal/lo25519
github.com/dgraph-io/badger/options
golang.org/x/sys/internal/unsafeheader
gonum.org/v1/gonum/blas
gonum.org/v1/gonum/graph
golang.org/x/text/encoding/internal/identifier
golang.org/x/text/internal/utf8internal
golang.org/x/crypto/salsa20/salsa
gonum.org/v1/gonum/internal/math32
gonum.org/v1/gonum/internal/asm/f64
gonum.org/v1/gonum/internal/asm/f32
gonum.org/v1/gonum/internal/asm/c128
gonum.org/v1/gonum/internal/asm/c64
golang.org/x/exp/rand
github.com/go-kit/kit/metrics/internal/lv
github.com/beorn7/perks/quantile
github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
github.com/go-kit/kit/metrics
github.com/cespare/xxhash/v2
github.com/davecgh/go-spew/spew
github.com/go-logfmt/logfmt
github.com/pkg/errors
github.com/dustin/go-humanize
github.com/golang/protobuf/proto
github.com/prometheus/common/model
github.com/prometheus/procfs/internal/fs
github.com/prometheus/procfs/internal/util
github.com/hashicorp/errwrap
github.com/keks/persist
github.com/go-kit/kit/log
go.cryptoscope.co/muxrpc/codec
go.cryptoscope.co/netwrap
github.com/hashicorp/go-multierror
github.com/cryptix/go/encodedTime
github.com/keks/nocomment
github.com/prometheus/procfs
golang.org/x/crypto/poly1305
golang.org/x/crypto/ed25519
golang.org/x/crypto/ed25519/edwards25519
golang.org/x/crypto/curve25519
golang.org/x/sys/cpu
golang.org/x/net/internal/timeseries
github.com/AndreasBriese/bbloom
golang.org/x/sys/unix
go.cryptoscope.co/luigi
github.com/dgryski/go-farm
golang.org/x/crypto/nacl/secretbox
github.com/cryptix/go/logging
github.com/cryptix/go/logging/countconn
github.com/go-kit/kit/log/level
go.cryptoscope.co/secretstream/boxstream
gonum.org/v1/gonum/graph/encoding
golang.org/x/net/trace
gonum.org/v1/gonum/graph/formats/dot/ast
go.cryptoscope.co/margaret
go.cryptoscope.co/muxrpc/debug
gonum.org/v1/gonum/graph/formats/dot/internal/token
golang.org/x/crypto/blake2b
go.cryptoscope.co/muxrpc
gonum.org/v1/gonum/graph/internal/ordered
gonum.org/v1/gonum/graph/internal/set
gonum.org/v1/gonum/graph/internal/linear
gonum.org/v1/gonum/graph/formats/dot/internal/lexer
gonum.org/v1/gonum/graph/formats/dot/internal/errors
go.cryptoscope.co/librarian
gonum.org/v1/gonum/graph/formats/dot/internal/astx
gonum.org/v1/gonum/graph/iterator
go.cryptoscope.co/secretstream/secrethandshake/internal/extra25519
gonum.org/v1/gonum/internal/cmplx64
gonum.org/v1/gonum/lapack
gonum.org/v1/gonum/graph/internal/uid
gonum.org/v1/gonum/graph/traverse
go.cryptoscope.co/margaret/multilog
gonum.org/v1/gonum/graph/formats/dot/internal/parser
modernc.org/fileutil
github.com/remyoudompheng/bigfft
modernc.org/sortutil
github.com/ugorji/go/codec
golang.org/x/crypto/nacl/box
go.cryptoscope.co/margaret/internal/persist
github.com/golang/snappy
github.com/philhofer/fwd
go.cryptoscope.co/margaret/internal/seqobsv
go.cryptoscope.co/margaret/offset2
github.com/teivah/onecontext
go.cryptoscope.co/secretstream/secrethandshake
golang.org/x/crypto/nacl/auth
golang.org/x/text/transform
go.cryptoscope.co/ssb/internal/ctxutils
go.cryptoscope.co/luigi/mfr
go.cryptoscope.co/ssb/internal/extra25519
github.com/machinebox/progress
go.cryptoscope.co/ssb/internal/neterr
gonum.org/v1/gonum/graph/formats/dot
github.com/tinylib/msgp/msgp
modernc.org/mathutil
golang.org/x/sync/errgroup
golang.org/x/text/encoding
golang.org/x/text/runes
go.cryptoscope.co/ssb/internal/mutil
gonum.org/v1/gonum/graph/encoding/dot
github.com/glycerine/go-unsnap-stream
gonum.org/v1/gonum/floats
gonum.org/v1/gonum/blas/gonum
go.cryptoscope.co/secretstream
golang.org/x/text/encoding/internal
github.com/edsrzf/mmap-go
github.com/libp2p/go-reuseport
github.com/dgraph-io/badger/y
golang.org/x/text/encoding/unicode
go.cryptoscope.co/ssb/internal/netwraputil
go.cryptoscope.co/ssb
github.com/prometheus/client_model/go
github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/dgraph-io/badger/pb
github.com/dgraph-io/badger/skl
github.com/dgraph-io/badger/table
go.cryptoscope.co/ssb/plugins2
go.cryptoscope.co/ssb/internal/transform
go.cryptoscope.co/ssb/blobstore
go.mindeco.de/ssb-multiserver
go.cryptoscope.co/ssb/message/legacy
go.cryptoscope.co/ssb/plugins/whoami
go.cryptoscope.co/ssb/plugins/get
go.cryptoscope.co/ssb/plugins/publish
go.cryptoscope.co/ssb/private
go.cryptoscope.co/ssb/plugins/replicate
go.cryptoscope.co/ssb/network
go.cryptoscope.co/ssb/plugins/control
go.cryptoscope.co/ssb/plugins/status
github.com/dgraph-io/badger
github.com/RoaringBitmap/roaring
github.com/prometheus/client_golang/prometheus/internal
github.com/prometheus/common/expfmt
modernc.org/internal/slice
go.cryptoscope.co/ssb/plugins/blobs
modernc.org/internal/buffer
modernc.org/internal/file
modernc.org/zappy
github.com/prometheus/client_golang/prometheus
gonum.org/v1/gonum/blas/blas64
gonum.org/v1/gonum/blas/cblas128
go.cryptoscope.co/margaret/multilog/roaring
github.com/go-kit/kit/metrics/prometheus
github.com/prometheus/client_golang/prometheus/promhttp
go.cryptoscope.co/librarian/badger
go.cryptoscope.co/margaret/multilog/badger
gonum.org/v1/gonum/lapack/gonum
modernc.org/lldb
go.cryptoscope.co/margaret/codec/msgpack
go.mindeco.de/ssb-gabbygrove
go.cryptoscope.co/ssb/message/multimsg
go.cryptoscope.co/ssb/message
go.cryptoscope.co/ssb/client
go.cryptoscope.co/ssb/plugins/private
go.cryptoscope.co/ssb/plugins/rawread
modernc.org/kv
go.cryptoscope.co/ssb/invite
go.cryptoscope.co/librarian/mkv
go.cryptoscope.co/margaret/internal/persist/mkv
gonum.org/v1/gonum/lapack/lapack64
go.cryptoscope.co/margaret/multilog/roaring/mkv
gonum.org/v1/gonum/mat
go.cryptoscope.co/ssb/repo
go.cryptoscope.co/ssb/multilogs
go.cryptoscope.co/ssb/plugins2/bytype
go.cryptoscope.co/ssb/plugins2/names
go.cryptoscope.co/ssb/plugins/legacyinvites
go.cryptoscope.co/ssb/plugins2/tangles
gonum.org/v1/gonum/graph/simple
gonum.org/v1/gonum/graph/path
go.cryptoscope.co/ssb/graph
go.cryptoscope.co/ssb/indexes
go.cryptoscope.co/ssb/plugins/gossip
go.cryptoscope.co/ssb/sbot
go.cryptoscope.co/ssb/cmd/go-sbot
stapelberg commented 4 years ago

Based on the output of the go tool, you’re running it in GOPATH mode instead of module mode.

Try cloning the repository into a different directory, outside your GOPATH, to make Go 1.14 to use module mode.

stapelberg commented 4 years ago

Also, this bit of your repro steps is not consistent:

sudo apt install golang-1.14
export PATH=$PATH:/usr/local/go/bin

You’re installing golang-1.14 from Debian, but then you use a version from /usr/local. If you want to use golang-1.14, you need export PATH=$PATH:/usr/lib/go-1.14/bin

cryptix commented 4 years ago

Okay, this is super odd. I'm getting this, too now when I'm using these package from another project.

go: go.mindeco.de/ssb-gabbygrove@v0.1.6 requires
    go.cryptoscope.co/ssb@v0.0.0-20190912121701-f368dd6b09da requires
    github.com/catherinejones/testdiff@v0.0.0-20180525195050-ae148f75f077: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /Users/cryptix/go/pkg/mod/cache/vcs/f53cd1c333815a51e0be131e1621bcbb995e158070cb5c1dcc8dfe2ef1d0897a: exit status 128:
    fatal: could not read Username for 'https://github.com': terminal prompts disabled

The nasty bit here is that we depend on gabbygrove which depends on a previous version where catherinejones/testdiff was in go.mod. Still, it's a testing dependency after all.. this needs to be untangled massively.

Currently i lay towards moving the reference types like FeedRef and MessageRef into a standalone package (since thats all gabbygrove and multiserver really need). I started an experiment of this on ext-refs-pkg.

cryptix commented 4 years ago

I'm still not sure how this isn't a wider issue but I don't have the capacity right now to open an issue with reproduction on the go toolchain itself.

I just pushed a bunch of patches to master which should alleviate the problem here.