rules_nixpkgs icon indicating copy to clipboard operation
rules_nixpkgs copied to clipboard

Default value for `extra_flags_per_feature` CC configuration is invalid

Open Silic0nS0ldier opened this issue 1 year ago • 1 comments

Describe the bug Bazel is expecting a dict ({}) but is given list ([]).

To Reproduce Use a Nix CC toolchain in Bazel 7.3.0 or 8.0.0-pre.20240807.1.

Expected behavior Build passes.

Environment

  • OS name + version: GNU/Linux (Ubuntu 22.04)
  • Version of the code: a11818b2173100ab8122712ae3694b711f956cbd

Additional context Issue manifests as

RROR: /[...]/external/local_config_cc_nix_x86_64-linux/BUILD.bazel:92:20: @@local_config_cc_nix_x86_64-linux//:local: expected value of type 'dict(string, list(string))' for attribute 'extra_flags_per_feature' in 'cc_toolchain_config' rule, but got [] (list)
ERROR: Evaluation of query "@local_config_cc_nix_x86_64-linux//:local" failed

Issue noted on #574, new issue raised as I cannot open the closed issue (and technically there is a value now).

Silic0nS0ldier avatar Aug 28 '24 06:08 Silic0nS0ldier

Will be addressed by https://github.com/tweag/rules_nixpkgs/pull/576

aherrmann avatar Aug 28 '24 07:08 aherrmann