Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interested in trying github.com/micro/micro .... but .... cannot install from source following installation instructions using go 1.14.6 #1149

Closed
dcs3spp opened this issue Jul 30, 2020 · 2 comments

Comments

@dcs3spp
Copy link

dcs3spp commented Jul 30, 2020

Hi,

I am a macOS user running Go version: go1.14.6 darwin/amd64 and unable to install from source.

The Readme documents installing from source as:

go get github.com/micro/micro/v3

I tried this and received a similar error to that explained here. So....

Then tried:

export GO111MODULE=on
go get github.com/micro/micro/v3

and received the error below:

is it related to a similar issue explained here?

go: downloading github.com/micro/micro v1.18.0
go: github.com/micro/micro/v3 upgrade => v3.0.0-20200730122401-c9a81fcbb742
go: downloading github.com/micro/cli/v2 v2.1.2
go: downloading github.com/micro/go-micro/v3 v3.0.0-alpha.0.20200729124150-006bbefaf3ee
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/google/uuid v1.1.1
go: downloading github.com/serenize/snaker v0.0.0-20171204205717-a683aaf2d516
go: downloading github.com/olekukonko/tablewriter v0.0.4
go: downloading github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca
go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e
go: downloading github.com/golang/protobuf v1.4.2
go: downloading google.golang.org/grpc v1.27.0
go: downloading github.com/go-acme/lego/v3 v3.4.0
go: downloading golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2
go: downloading github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf
go: downloading github.com/forestgiant/sliceutil v0.0.0-20160425183142-94783f95db6c
go: downloading github.com/BurntSushi/toml v0.3.1
go: downloading github.com/mattn/go-runewidth v0.0.7
go: downloading github.com/patrickmn/go-cache v2.1.0+incompatible
go: downloading google.golang.org/protobuf v1.25.0
go: downloading github.com/gorilla/mux v1.7.3
go: downloading golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/miekg/dns v1.1.27
go: downloading github.com/caddyserver/certmagic v0.10.6
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
go: downloading github.com/bwmarrin/discordgo v0.20.2
go: downloading google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/gorilla/handlers v1.4.2
go: downloading github.com/stretchr/testify v1.5.1
go: downloading github.com/ghodss/yaml v1.0.0
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading gopkg.in/telegram-bot-api.v4 v4.6.4
go: downloading github.com/lucas-clemente/quic-go v0.14.1
go: downloading github.com/imdario/mergo v0.3.9
go: downloading github.com/nlopes/slack v0.6.1-0.20191106133607-d06c2a2b3249
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c
go: downloading github.com/coreos/etcd v3.3.18+incompatible
go: downloading github.com/gorilla/websocket v1.4.1
go: downloading github.com/nats-io/nats.go v1.9.2
go: downloading github.com/mitchellh/hashstructure v1.0.0
go: downloading go.etcd.io/bbolt v1.3.4
go: downloading github.com/bitly/go-simplejson v0.5.0
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0
go: downloading github.com/nats-io/nuid v1.0.1
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading github.com/cenkalti/backoff/v4 v4.0.0
go: downloading github.com/klauspost/cpuid v1.2.3
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading github.com/cloudflare/cloudflare-go v0.10.9
go: downloading github.com/hashicorp/go-version v1.2.1
go: downloading github.com/lib/pq v1.3.0
go: downloading github.com/nats-io/jwt v0.3.2
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
go: downloading github.com/cheekybits/genny v1.0.0
go: downloading github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee
go: downloading gopkg.in/square/go-jose.v2 v2.4.1
go: downloading github.com/gobwas/ws v1.0.3
go: downloading github.com/marten-seemann/qtls v0.4.1
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/evanphx/json-patch/v5 v5.0.0
go: downloading github.com/gogo/protobuf v1.2.1
go: downloading github.com/marten-seemann/chacha20 v0.2.0
go: downloading github.com/technoweenie/multipartstreamer v1.0.1
go: downloading golang.org/x/time v0.0.0-20191024005414-555d28b269f0
go: downloading github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f
go: downloading github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f
go: downloading github.com/gobwas/pool v0.2.0
go: downloading go.uber.org/zap v1.13.0
go: downloading github.com/nats-io/nkeys v0.1.4
go: downloading github.com/hpcloud/tail v1.0.0
go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
go: downloading gopkg.in/fsnotify.v1 v1.4.7
go: downloading go.uber.org/atomic v1.5.0
go: downloading go.uber.org/multierr v1.3.0
go: downloading golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f
go: downloading go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee
go: downloading honnef.co/go/tools v0.0.1-2019.2.3
go: downloading golang.org/x/tools v0.0.0-20200117065230-39095c1d176c
# github.com/coreos/etcd/clientv3/balancer/resolver/endpoint
go/pkg/mod/github.com/coreos/etcd@v3.3.18+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:114:78: undefined: resolver.BuildOption
go/pkg/mod/github.com/coreos/etcd@v3.3.18+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:182:31: undefined: resolver.ResolveNowOption
# github.com/coreos/etcd/clientv3/balancer/picker
go/pkg/mod/github.com/coreos/etcd@v3.3.18+incompatible/clientv3/balancer/picker/err.go:37:44: undefined: balancer.PickOptions
go/pkg/mod/github.com/coreos/etcd@v3.3.18+incompatible/clientv3/balancer/picker/roundrobin_balanced.go:55:54: undefined: balancer.PickOptions

Was late at this point so returned to the issue the next day....

So....I installed binary micro/micro, following the instructions from micro/micro/README.md. This installed v2. Not sure if v3 available as a binary??

With micro v2, managed to get a service created using micro new. Followed the instructions in terminal to install protobuf utilities and then ran make proto which did not recognise protoc. Downloaded the latest of protoc which is (3.12.4) at the time of writing.

Now when I run make proto there is a warning about missing: option go_package.

After digging into google docs I discovered that this has recently been identified as required in the proto file. Not sure if micro/micro V3 generates the proto file with this option included, since I was unable to install from source (see above)!

So....as a macOS user, following the documentation README.md I encountered some issues and had to resort to installing binary version which installed micro v2. Finally managed to get a service built after tweaking the proto file to include option go_package.

Documenting experiences so far as a macOS user, to assist others that encounter the same problems.

@dcs3spp dcs3spp changed the title Interested in trying github.com/micro/micro .... but .... cannot install from source following installation instructions Interested in trying github.com/micro/micro .... but .... cannot install from source following installation instructions using go 1.14.6 Jul 30, 2020
@canaanpaul
Copy link

@dcs3spp this issue was caused by micro does not support grpc 1.27, you can reduce grpc to 1.26, you can run:
go get github.com/micro/micro/v3
and then go to gopath/src/github.com/micro and modify the go.mod file,
execute go get again or go install will work.

@asim
Copy link
Member

asim commented Aug 23, 2020

Please see our go mod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants