Azure-Samples / azure-sdk-for-go-samples

Examples of how to utilize Azure services from Go.
MIT License
296 stars 184 forks source link

Internal package error #263

Open DavidLangworthy opened 4 years ago

DavidLangworthy commented 4 years ago

I'm getting an internal package reference error. This seems like it could be due to merging the samples into one repo.

XPS-13:~/go/src/github.com/Azure/azure-sdk-for-go-samples$ dep ensure XPS-13:~/go/src/github.com/Azure/azure-sdk-for-go-samples$ go test -v ./resources/. resources/cleanup.go:12:2: use of internal package github.com/Azure/azure-sdk-for-go-samples/vendor/github.com/Azure-Samples/azure-sdk-for-go-samples/internal/config not allowed resources/deployment.go:15:2: use of internal package github.com/Azure/azure-sdk-for-go-samples/vendor/github.com/Azure-Samples/azure-sdk-for-go-samples/internal/iam not allowed

Thank you for your contribution and feedback! Help us review faster by providing the following information:

This issue is a: (mark with an x)

Steps to reproduce:

Errors and log messages:

Expected behavior:

OS and Go versions:

Further info:

ArcturusZhang commented 4 years ago

The sample repo is using dep as dependency management tool, so please put the repo in the following path to avoid this kind of error. $(GOPATH)/src/github.com/Azure-Samples/azure-sdk-for-go-samples

hetalsonavane commented 4 years ago

@ArcturusZhang I am getting the same error even after running with dep and putting azure-sdk-for-go-samples in this $(GOPATH)/src/github.com/Azure-Samples/azure-sdk-for-go-samples directory.

ArcturusZhang commented 4 years ago

Hi @hetalsonavane now the sample repo has been switched to go modules as dependency management. With go modules, you could put your code wherever you want