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

Build error when upgrading version fro v8.0.0-beta.8 to v8.3.1 #1536

Closed
gonzalochief opened this issue Oct 13, 2020 · 4 comments
Closed

Build error when upgrading version fro v8.0.0-beta.8 to v8.3.1 #1536

gonzalochief opened this issue Oct 13, 2020 · 4 comments

Comments

@gonzalochief
Copy link

gonzalochief commented Oct 13, 2020

Issue tracker is used for reporting bugs and discussing new features. Please use
stackoverflow for supporting issues.

I was using go-redis without issues until i updated my golang mod files and i started getting this build error:
cannot find package "go.opentelemetry.io/otel/apils" in any of: /usr/local/go/src/go.opentelemetry.io/otel/apils (from $GOROOT)
Iḿ currently using go version go1.15.2 linux/amd64.
The compiler gets all the opentelemetry package but the apils package

Expected Behavior

The program should compile without error

Current Behavior

cannot find package "go.opentelemetry.io/otel/apils" in any of: /usr/local/go/src/go.opentelemetry.io/otel/apils (from $GOROOT)

Possible Solution

Update the code using trace.### to point the otel package

Steps to Reproduce

1.Create a clean development environment
2. Clone a repo using go-redis
3. go build the code
4. The error appears

Context (Environment)

Detailed Description

Possible Implementation

@vmihailenco
Copy link
Collaborator

#1534

@gonzalochief
Copy link
Author

I checked the Otel source code and the trace package was moved to the otel package in v0.13.0. If you check the source code of the otel package, there is a trace.go file as part of the otel package.
The issue is that the source code of go-redis keeps importing the /otel/api/trace package. This causes the compiler to try get a package that does not exists anymore. see files: options.go, redis.go, util.go, and conn.go.
I hope this helps... i have not been able to compile my code due to this issue. As always, thanks for all your help. Let me know if there is anything i can do

@gonzalochief
Copy link
Author

I fixed the code, and now it works with the new version of opentelemetry.
Do you want me to send you the fixes? i have no problem sharing that if it helps you

@gonzalochief
Copy link
Author

#1544
I create a new issue with more detail and avoiding a couple of typos that create confusion

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

2 participants