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

Go SDK fails to install with dependency error #4316

Closed
seyadava opened this issue Mar 19, 2019 · 6 comments
Closed

Go SDK fails to install with dependency error #4316

seyadava opened this issue Mar 19, 2019 · 6 comments

Comments

@seyadava
Copy link

Install Go SDK fails with the following error:

go get -u github.com/Azure/azure-sdk-for-go/...
package go.opencensus.io/exemplar: cannot find package "go.opencensus.io/exemplar" in any of:
C:\Go\src\go.opencensus.io\exemplar (from $GOROOT)
C:\Users<user>\go\src\go.opencensus.io\exemplar (from $GOPATH)

@jhendrixMSFT
Copy link
Member

This is a known upstream issue, please see census-instrumentation/opencensus-go#1067 (comment).
Is there a reason you're not using dep for package management?

@seyadava
Copy link
Author

Thanks for your quick response @jhendrixMSFT

There is no technical reason. Go SDK document gives two options to install Go SDK and at the time we wrote our tests we chose to use Git instead of dep to install the SDK (mainly because we have Git installed on our environments and didn't want to install additional tools).
I can see the upstream fix is being merged 6 hours ago. But issue still repros on our end. Any ideas why?

@orlangure
Copy link

@seyadava, the PR with a fix was merged 20 minutes ago (or 6 minutes before you posted your comment).

@songy23
Copy link

songy23 commented Mar 19, 2019

census-instrumentation/opencensus-go#1071 should temporarily fix this. Sorry for the inconvenience.

If you're using Go1.11+, maybe consider pinning a released version of go.opencensus.io, for example https://github.com/census-ecosystem/opencensus-go-exporter-stackdriver/blob/ab5a58af316a529613aadf9f50eeed1b6f044b2f/go.mod#L11.

@jhendrixMSFT
Copy link
Member

@songy23 thanks for the update.
@seyadava I highly recommend using dep to manage your dependencies to avoid such issues. It's what we test with so everything should always just work.

@jhendrixMSFT
Copy link
Member

Closing as the fix has been made upstream.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants