bazel version:
$ bazel version
Build label: 0.26.1-homebrew
Note: I am using rules_go https://github.com/bazelbuild/rules_go/tree/8ea79bbd5e6ea09dc611c245d1dc09ef7ab7118a because I am trying to get cross compilation working again.
I am noticing an issue was introduced with the current 0.8.1 release. When using 0.8.1 and https://github.com/bazelbuild/rules_go/tree/8ea79bbd5e6ea09dc611c245d1dc09ef7ab7118a from rules_go I am getting the error:
ERROR: While resolving toolchains for target //:external_dns_image: no matching toolchains found for types @io_bazel_rules_docker//toolchains/docker:toolchain_type
ERROR: Analysis of target '//:external_dns_image' failed; build aborted: no matching toolchains found for types @io_bazel_rules_docker//toolchains/docker:toolchain_type
With rules_docker 0.8.0 I do not get this error when I am not cross compiling. When I use --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64, 0.8.0 does not work as well.
I have tried to add the docker_toolchain_configure calls and also the calls to register the tool chains. Using the docker_toolchain_configure does not help. Using the register_toolchains call just give me a weird error that @gzip does not exist.
The repo that I am working out of is located here: https://github.com/chrislovecnm/external-dns/tree/work-on-bazel
bazel version:
Note: I am using rules_go https://github.com/bazelbuild/rules_go/tree/8ea79bbd5e6ea09dc611c245d1dc09ef7ab7118a because I am trying to get cross compilation working again.
I am noticing an issue was introduced with the current 0.8.1 release. When using 0.8.1 and https://github.com/bazelbuild/rules_go/tree/8ea79bbd5e6ea09dc611c245d1dc09ef7ab7118a from rules_go I am getting the error:
With rules_docker 0.8.0 I do not get this error when I am not cross compiling. When I use
--platforms=@io_bazel_rules_go//go/toolchain:linux_amd64, 0.8.0 does not work as well.I have tried to add the
docker_toolchain_configurecalls and also the calls to register the tool chains. Using thedocker_toolchain_configuredoes not help. Using theregister_toolchainscall just give me a weird error that@gzipdoes not exist.The repo that I am working out of is located here: https://github.com/chrislovecnm/external-dns/tree/work-on-bazel