Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal package error #263

Open
4 tasks
DavidLangworthy opened this issue Sep 26, 2019 · 3 comments
Open
4 tasks

Internal package error #263

DavidLangworthy opened this issue Sep 26, 2019 · 3 comments

Comments

@DavidLangworthy
Copy link

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)

  • bug report
  • request for new sample
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)

Steps to reproduce:

Errors and log messages:

Expected behavior:

OS and Go versions:

Further info:

@ArcturusZhang
Copy link
Contributor

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
Copy link

@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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants