From 8b63556334270d9601991bac20fbd6f695d8976d Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 5 Sep 2024 22:07:26 -0700 Subject: [PATCH] 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 --- cc/toolchains/args.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 @@ _cc_args = rule( 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 @@ Bazel checks that all included headers are properly provided by a dependency or 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.