Fix buildifier finding in rules_cc
BEGIN_PUBLIC
Fix buildifier finding in rules_cc
Fixes an out-of-order dictionary entry identified by the rules_cc Bazel CI.
END_PUBLIC
PiperOrigin-RevId: 671626223
Change-Id: Ib33fa36db879a5cd89cb2d01bb5b671e706de77b
diff --git a/cc/toolchains/args.bzl b/cc/toolchains/args.bzl
index 282fa04..4f71986 100644
--- a/cc/toolchains/args.bzl
+++ b/cc/toolchains/args.bzl
@@ -91,9 +91,6 @@
See @rules_cc//cc/toolchains/actions:all for valid options.
""",
),
- "env": attr.string_dict(
- doc = "Environment variables to be added to the command-line.",
- ),
"allowlist_include_directories": attr.label_list(
providers = [DirectoryInfo],
doc = """Include paths implied by using this rule.
@@ -104,6 +101,9 @@
allowlisted through this mechanism.
""",
),
+ "env": attr.string_dict(
+ doc = "Environment variables to be added to the command-line.",
+ ),
"requires_any_of": attr.label_list(
providers = [FeatureConstraintInfo],
doc = """This will be enabled when any of the constraints are met.