Open jkurek1 opened 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 #
@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.
Hello, When I want to download Azure Module:
I'm getting: