Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around Bazel toolchain constraint issue
Toolchain resolution of the Python toolchain erroneously picked the autodetecting toolchain instead of the nixpkgs provided toolchain. Debugging with `--toolchain_resolution_debug` shows the following error: ``` Toolchain constraint @bazel_tools//tools/cpp:cc_compiler has value //nixpkgs/constraints:nixpkgs, which does not match value @io_tweag_rules_nixpkgs//nixpkgs/constraints:nixpkgs from the execution platform @io_tweag_rules_nixpkgs//nixpkgs/constraints:linux_x86_64_nixpkgs ``` The issue is that Bazel (tested at version 2.1) considers `//nixpkgs/constraints:nixpkgs` and `@io_tweag_rules_nixpkgs//nixpkgs/constraints:nixpkgs` two different values, even though they refer to the same target.
- Loading branch information