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

rules_go requires a cc toolchain #3470

Open
jfirebaugh opened this issue Mar 8, 2023 · 2 comments
Open

rules_go requires a cc toolchain #3470

jfirebaugh opened this issue Mar 8, 2023 · 2 comments

Comments

@jfirebaugh
Copy link
Contributor

What version of rules_go are you using?

0.38.1

What version of gazelle are you using?

n/a

What version of Bazel are you using?

6.0.0

Does this issue reproduce with the latest releases of all the above?

Yes

What operating system and processor architecture are you using?

macOS ARM

Any other potentially useful information about your toolchain?

n/a

What did you do?

Minimal repro: https://github.com/jfirebaugh/rules_go_cc_toolchain

Run BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 bazel build --@io_bazel_rules_go//go/config:pure //:main

What did you expect to see?

Builds succesfully.

What did you see instead?

ERROR: /private/var/tmp/_bazel_john/1a1601b430d3853275c40a0975b48db0/external/io_bazel_rules_go/BUILD.bazel:86:17: While resolving toolchains for target @io_bazel_rules_go//:cgo_context_data: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type.
@fmeum
Copy link
Member

fmeum commented Mar 8, 2023

This is being worked on in #3390, which is currently blocked on a Bazel bug I fixed in 6.1.0 (see #3390 (comment)).

Please ping this bug once Bazel 7.0 is out and we can raise the minimum version to 6.1.0, which will allow us to merge the PR.

@vihangm
Copy link

vihangm commented Dec 18, 2023

Bazel 7.0 is out! Can we get this fixed? @fmeum
Thanks!

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