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

google.golang.org/genproto/googleapis/rpc/status: ambiguous import issue #29

Open
jadKhoury1 opened this issue Jan 11, 2024 · 2 comments
Assignees
Labels

Comments

@jadKhoury1
Copy link

When I try to build the xk6 using the following command

xk6 build --with github.com/grafana/xk6-redis --with github.com/grafana/xk6-output-template

I get the following error:

go: k6 imports
        github.com/grafana/xk6-redis imports
        github.com/grafana/xk6-redis/redis tested by
        github.com/grafana/xk6-redis/redis.test imports
        go.k6.io/k6/lib/testutils/httpmultibin imports
        google.golang.org/grpc/status imports
        google.golang.org/genproto/googleapis/rpc/status: ambiguous import: found package google.golang.org/genproto/googleapis/rpc/status in multiple modules:
        google.golang.org/genproto v0.0.0-20210226172003-ab064af71705 (/go/pkg/mod/google.golang.org/genproto@v0.0.0-20210226172003-ab064af71705/googleapis/rpc/status)
        google.golang.org/genproto/googleapis/rpc v0.0.0-20230731193218-e0aa005b6bdf (/go/pkg/mod/google.golang.org/genproto/googleapis/rpc@v0.0.0-20230731193218-e0aa005b6bdf/status)
@oleiade
Copy link
Member

oleiade commented Jan 11, 2024

Hi @jadKhoury1

Thanks for reaching out. It appears using the github.com/grafana/xk6-output-template extension causes this issue. Considering this specific extension is meant as a template that allows you to kickstart an extension's project instead of being used directly in the build process, may I enquire what you're trying to achieve? 🙇🏻

@jadKhoury1
Copy link
Author

Hello @oleiade

Thank you for your response. Initially, the package that I wanted to build was github.com/LeonAdato/xk6-output-statsd, which is generated from github.com/grafana/xk6-output-template and as you mentioned the problem is coming from xk6-output-template, it seems that the extension is using an older google.golang.org/genproto version from the one that you are using in your project.

So as a workaround for now, I forked the github.com/LeonAdato/xk6-output-statsd and updated google.golang.org/genproto version jadKhoury1/xk6-output-statsd@8a42f2e.

To be honest I am not sure exactly on which project I should report the issue knowing that xk6-output-template is used as a template for output extensions, and that xk6-output-statsd is the replacement of the initial k6 StatsD metrics collector.

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

No branches or pull requests

2 participants