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:Gosrcgo.opencensus.ioexemplar (from $GOROOT)
C:Usersgosrcgo.opencensus.ioexemplar (from $GOPATH)
This is a known upstream issue, please see https://github.com/census-instrumentation/opencensus-go/pull/1067#issuecomment-474279057.
Is there a reason you're not using dep for package management?
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?
@seyadava, the PR with a fix was merged 20 minutes ago (or 6 minutes before you posted your comment).
https://github.com/census-instrumentation/opencensus-go/pull/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.
@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.
Closing as the fix has been made upstream.
Most helpful comment
https://github.com/census-instrumentation/opencensus-go/pull/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.