gruntwork-io / terratest

Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
https://terratest.gruntwork.io/
Apache License 2.0
7.51k stars 1.32k forks source link

Issue with downloading Azure Module #1088

Open jkurek1 opened 2 years ago

jkurek1 commented 2 years ago

Hello, When I want to download Azure Module:

go get github.com/gruntwork-io/terratest/modules/azure

I'm getting:

go: downloading github.com/Azure/azure-sdk-for-go v50.2.0+incompatible
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/latest/frontdoor/mgmt/frontdoor: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/latest/mysql/mgmt/mysql: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/latest/resources/mgmt/resources: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/latest/sql/mgmt/sql: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: 
stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/preview/cosmos-db/mgmt/documentdb: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/preview/preview/monitor/mgmt/insights: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/profiles/preview/sql/mgmt/sql: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-07-01/compute: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2019-05-01/containerregistry: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-11-01/containerservice: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/keyvault/auth: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/keyvault/v7.0/keyvault: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-09-01/network: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2017-12-01/postgresql: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2020-03-01-preview/operationalinsights: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2016-06-01/recoveryservices: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2020-02-02/backup: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-06-01/subscriptions: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-10-01/resources: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/storage/mgmt/2019-06-01/storage: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
github.com/gruntwork-io/terratest/modules/azure imports
        github.com/Azure/azure-sdk-for-go/services/web/mgmt/2019-08-01/web: github.com/Azure/azure-sdk-for-go@v50.2.0+incompatible: stream error: stream ID 1; NO_ERROR; received from peer
denis256 commented 2 years ago

Hi, can be shared more details about the environment - used go version, settings for goproxy, http proxy usage

So far, the issue didn't occur in my tests:

$ docker run -it  golang:1.17.8-alpine3.15 
/go # go get github.com/gruntwork-io/terratest/modules/azure 
go: downloading github.com/gruntwork-io/terratest v0.40.6
go: downloading github.com/Azure/azure-sdk-for-go v50.2.0+incompatible
go: downloading github.com/Azure/go-autorest/autorest v0.11.20
go: downloading github.com/Azure/go-autorest/autorest/azure/auth v0.5.8
go: downloading github.com/stretchr/testify v1.7.0
go: downloading github.com/Azure/go-autorest/autorest/date v0.3.0
go: downloading github.com/Azure/go-autorest/autorest/to v0.4.0
go: downloading github.com/Azure/go-autorest/autorest/validation v0.3.1
go: downloading github.com/Azure/go-autorest/tracing v0.6.0
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/Azure/go-autorest v14.2.0+incompatible
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading github.com/Azure/go-autorest/autorest/adal v0.9.13
go: downloading github.com/Azure/go-autorest/autorest/azure/cli v0.4.2
go: downloading github.com/Azure/go-autorest/logger v0.2.1
go: downloading github.com/dimchansky/utfbom v1.1.1
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
go: downloading github.com/form3tech-oss/jwt-go v3.2.2+incompatible
/go # 
HadwaAbdelhalem commented 2 years ago

@Chivolta you need to use go get -v -u github.com/gruntwork-io/terratest instead of the relevant submodule. Otherwise, go does not detect terratest's go.mod file, and won't respect the transient dependency requirements.

This means that go will proceed to pull in the latest versions of all the referenced dependencies in the azure module, which is probably why you ran into this error.