Azure / azure-event-hubs-go

Golang client library for Azure Event Hubs https://azure.microsoft.com/services/event-hubs
MIT License
88 stars 69 forks source link

Couldn't download v2 package #135

Open maxtar opened 5 years ago

maxtar commented 5 years ago

Hi, I do go get -u github.com/Azure/azure-event-hubs-go/v2

Expected Behavior

All packages downloaded successful.

Actual Behavior

Getting the following error:

>go get -u github.com/Azure/azure-event-hubs-go/v2
go: finding golang.org/x/crypto latest
go: finding golang.org/x/net latest
go: finding golang.org/x/sync latest
go: finding github.com/jpillora/backoff latest
go: finding golang.org/x/sys latest
go: finding golang.org/x/tools latest
go: finding golang.org/x/lint latest
go: finding github.com/golang/glog latest
go: finding google.golang.org/genproto latest
go: finding gopkg.in/check.v1 latest
go: finding golang.org/x/oauth2 latest
go: finding golang.org/x/time latest
go: finding github.com/google/pprof latest
go: finding github.com/mattn/go-ieproxy latest
go: finding github.com/jstemmer/go-junit-report latest
go: finding golang.org/x/exp latest
go: finding golang.org/x/mobile latest
go: finding golang.org/x/image latest
go: finding github.com/BurntSushi/xgb latest
go: finding golang.org/x/xerrors latest
# github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\consumergroups.go:126:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\consumergroups.go:222:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\consumergroups.go:317:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\consumergroups.go:430:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\disasterrecoveryconfigs.go:120:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\disasterrecoveryconfigs.go:211:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\disasterrecoveryconfigs.go:306:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\disasterrecoveryconfigs.go:398:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\disasterrecoveryconfigs.go:489:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\disasterrecoveryconfigs.go:580:8: undefined: autorest.GetSendDecorators
c:\usr\gopath\pkg\mod\github.com\!azure\azure-sdk-for-go@v32.5.0+incompatible\services\eventhub\mgmt\2017-04-01\eventhub\disasterrecoveryconfigs.go:580:8: too many errors

Environment

devigned commented 5 years ago

Would you try to run GO111MODULE=on go get -u github.com/Azure/azure-event-hubs-go/v2 or execute go get -u github.com/Azure/azure-event-hubs-go/v2 outside of your GOPATH, and report back?

maxtar commented 5 years ago

@devigned I do it outside my GOPATH. But If I do it in directory with my module I've got described above situation. If I do it in any other path, I've got the same error as in issue 132

maxtar commented 5 years ago

Do you have any news?

devigned commented 5 years ago

I'm not sure what to tell you. This is what I see when I run go get -u github.com/Azure/azure-event-hubs-go/v2.

$ go version
go version go1.12.9 darwin/amd64

$ go get -u github.com/Azure/azure-event-hubs-go/v2
go: finding github.com/Azure/azure-event-hubs-go/v2 v2.0.2
go: finding github.com/google/go-cmp v0.3.1
go: finding github.com/Azure/azure-pipeline-go v0.2.2
go: finding github.com/stretchr/testify v1.4.0
go: finding github.com/jpillora/backoff latest
go: finding golang.org/x/net latest
go: finding google.golang.org/appengine v1.6.2
go: finding google.golang.org/grpc v1.23.0
go: finding github.com/Azure/azure-storage-blob-go v0.8.0
go: finding cloud.google.com/go v0.44.3
go: finding golang.org/x/sys latest
go: finding github.com/hashicorp/golang-lru v0.5.3
go: finding golang.org/x/oauth2 latest
go: finding github.com/golang/protobuf v1.3.2
go: finding golang.org/x/tools latest
go: finding github.com/stretchr/objx v0.2.0
go: finding github.com/golang/glog latest
go: finding golang.org/x/lint latest
go: finding github.com/Azure/azure-pipeline-go v0.2.1
go: finding golang.org/x/crypto latest
go: finding google.golang.org/api v0.9.0
go: finding github.com/census-instrumentation/opencensus-proto v0.2.1
go: finding contrib.go.opencensus.io/exporter/ocagent v0.6.0
go: finding github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d
go: finding honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc
go: finding golang.org/x/sync latest
go: finding google.golang.org/api v0.8.0
go: finding honnef.co/go/tools v0.0.1-2019.2.2
go: finding gopkg.in/check.v1 latest
go: finding github.com/mattn/go-ieproxy latest
go: finding github.com/googleapis/gax-go/v2 v2.0.5
go: finding honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a
go: finding github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024
go: finding google.golang.org/genproto latest
go: finding cloud.google.com/go/datastore v1.0.0
go: finding github.com/google/pprof v0.0.0-20190515194954-54271f7e092f
go: finding github.com/golang/mock v1.3.1
go: finding golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7
go: finding github.com/jstemmer/go-junit-report latest
go: finding google.golang.org/grpc v1.22.0
go: finding golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135
go: finding golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: finding golang.org/x/exp latest
go: finding github.com/Azure/go-autorest v13.0.0+incompatible
go: finding github.com/grpc-ecosystem/grpc-gateway v1.11.1
go: finding github.com/mattn/go-ieproxy v0.0.0-20190610004146-91bb50d98149
go: finding google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610
go: finding google.golang.org/appengine v1.6.1
go: finding github.com/google/pprof latest
go: finding github.com/grpc-ecosystem/grpc-gateway v1.9.4
go: finding golang.org/x/sys v0.0.0-20190606165138-5da285871e9c
go: finding golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b
go: finding rsc.io/binaryregexp v0.2.0
go: finding golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b
go: finding golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522
go: finding google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64
go: finding golang.org/x/time latest
go: finding golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846
go: finding golang.org/x/tools v0.0.0-20190425150028-36563e24a262
go: finding google.golang.org/grpc v1.21.1
go: finding github.com/rogpeppe/fastuuid v1.2.0
go: finding golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6
go: finding google.golang.org/api v0.7.0
go: finding github.com/kr/pty v1.1.8
go: finding cloud.google.com/go v0.38.0
go: finding golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0
go: finding google.golang.org/appengine v1.5.0
go: finding golang.org/x/tools v0.0.0-20190816200558-6889da9d5479
go: finding github.com/google/renameio v0.1.0
go: finding golang.org/x/net v0.0.0-20190628185345-da137c7871d7
go: finding golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac
go: finding golang.org/x/mobile latest
go: finding golang.org/x/image v0.0.0-20190227222117-0694c2d4d067
go: finding golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c
go: finding github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802
go: finding golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
go: finding golang.org/x/mod v0.1.0
go: finding google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7
go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
go: finding golang.org/x/image latest
go: finding github.com/golang/mock v1.2.0
go: finding github.com/BurntSushi/xgb latest
go: finding honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a
go: finding golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e
go: finding golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56
go: finding golang.org/x/time v0.0.0-20181108054448-85acf8d2951c
go: finding github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57
go: finding cloud.google.com/go v0.44.1
go: finding golang.org/x/sys v0.0.0-20190312061237-fead79001313
go: finding github.com/rogpeppe/go-internal v1.3.0
go: finding github.com/google/martian v2.1.0+incompatible
go: finding golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c
go: finding golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529
go: finding github.com/googleapis/gax-go/v2 v2.0.4
go: finding golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0
go: finding golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028
go: finding google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873
go: finding golang.org/x/image v0.0.0-20190802002840-cff245a6509b
go: finding github.com/creack/pty v1.1.7
go: finding golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8
go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding github.com/rogpeppe/go-internal v1.3.1
go: finding gopkg.in/errgo.v2 v2.1.0
go: finding golang.org/x/xerrors latest
go: finding github.com/Azure/azure-sdk-for-go v33.0.0+incompatible
go: downloading github.com/Azure/azure-event-hubs-go/v2 v2.0.2
go: extracting github.com/Azure/azure-event-hubs-go/v2 v2.0.2
go: downloading github.com/Azure/azure-sdk-for-go v33.0.0+incompatible
go: downloading github.com/Azure/go-autorest v13.0.0+incompatible
go: extracting github.com/Azure/go-autorest v13.0.0+incompatible
go: finding github.com/Azure/go-autorest/autorest/azure latest
go: finding github.com/Azure/go-autorest/autorest/to v0.3.0
go: downloading golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297
go: finding github.com/Azure/go-autorest/autorest/date v0.2.0
go: extracting golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297
go: downloading golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472
go: downloading github.com/Azure/go-autorest/autorest/to v0.3.0
go: finding github.com/Azure/go-autorest/autorest/adal v0.6.0
go: extracting golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472
go: downloading github.com/Azure/go-autorest/autorest/date v0.2.0
go: finding github.com/Azure/go-autorest/autorest v0.9.0
go: downloading github.com/Azure/go-autorest/autorest/adal v0.6.0
go: extracting github.com/Azure/go-autorest/autorest/to v0.3.0
go: downloading github.com/Azure/go-autorest/autorest v0.9.0
go: extracting github.com/Azure/go-autorest/autorest/date v0.2.0
go: extracting github.com/Azure/go-autorest/autorest/adal v0.6.0
go: extracting github.com/Azure/go-autorest/autorest v0.9.0
go: extracting github.com/Azure/azure-sdk-for-go v33.0.0+incompatible
go: finding github.com/Azure/go-autorest/autorest/validation v0.2.0
go: finding github.com/Azure/go-autorest/tracing v0.5.0
go: downloading github.com/Azure/go-autorest/tracing v0.5.0
go: downloading github.com/Azure/go-autorest/autorest/validation v0.2.0
go: extracting github.com/Azure/go-autorest/tracing v0.5.0
go: extracting github.com/Azure/go-autorest/autorest/validation v0.2.0
go: finding github.com/Azure/go-autorest/autorest/mocks v0.3.0
go: finding github.com/Azure/go-autorest/autorest/adal v0.5.0
go: finding github.com/Azure/go-autorest/autorest/mocks v0.2.0
go: finding github.com/Azure/go-autorest/logger v0.1.0
go: finding github.com/Azure/go-autorest/autorest/date v0.1.0
go: finding github.com/Azure/go-autorest/autorest/mocks v0.1.0
go: downloading github.com/Azure/go-autorest/logger v0.1.0
go: extracting github.com/Azure/go-autorest/logger v0.1.0
maxtar commented 5 years ago

I've tried now, and error was gone. Maybe you do new commits since I wrote this issue? And I upgraded to go 1.13.

peter0086 commented 4 years ago

I met this issue when I imported the packages from Azure Golang SDK. @devigned OS: rhel 7 Go version: go1.12.7

import github.com/Azure/azure-sdk-for-go v39.1.0+incompatible then, which version of autorest should I use? Thank you.