https://pulumi.com logo
Title
g

gifted-city-99717

05/20/2020, 11:22 PM
Hi, i’m running into a go mod error I’m not sure how to fix
imports <http://github.com/Azure/go-autorest/autorest|github.com/Azure/go-autorest/autorest>: ambiguous import: found package <http://github.com/Azure/go-autorest/autorest|github.com/Azure/go-autorest/autorest> in multiple modules:
	<http://github.com/Azure/go-autorest|github.com/Azure/go-autorest> v12.0.0+incompatible (/Users/jws/code/gocode/pkg/mod/github.com/!azure/go-autorest@v12.0.0+incompatible/autorest)
	<http://github.com/Azure/go-autorest/autorest|github.com/Azure/go-autorest/autorest> v0.10.0 (/Users/jws/code/gocode/pkg/mod/github.com/!azure/go-autorest/autorest@v0.10.0)
I think I want to pin a version of autotest? is that the right way to solve a dependency error like this? i’m on
♥ λ go version
go version go1.14.3 darwin/amd64
l

lemon-agent-27707

05/20/2020, 11:28 PM
Is this after taking a dependency on pulumi/pkg for testing? We use a replace to pin to a specific version:
replace(
 <http://github.com/Azure/go-autorest|github.com/Azure/go-autorest> => <http://github.com/Azure/go-autorest|github.com/Azure/go-autorest> v12.4.3+incompatible
)
g

gifted-city-99717

05/20/2020, 11:29 PM
I think so. I just started writing my integration tests. i got it to work by ’go get’ing the problem package. i’ll try the replace. Thanks!
yup. that worked. Thank you!
👍 1