Hi,
I try to build a small go application with bazel go_rules and on a linux RBE host. My machine is a M1 mac though (Darwin Arm64).
I think I'm missing something small in my setup. I have configured go_rules with a go_sdk for linux and AMD64:
load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_download_sdk(
name = "go_sdk_1.18.1",
goarch = "amd64",
goos = "linux",
version = "1.18.1",
)
go_register_toolchains()
But when I run my build I get:
While resolving toolchains for target //:project_lib: no matching toolchains found for types @io_bazel_rules_go//go:toolchain
Maybe you have a pointer what I'm doing wrong.