Skip to content

Commit dba3aa1

Browse files
fix pre-commit
1 parent 8394856 commit dba3aa1

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

doc_build/BUILD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ filegroup(
3939
# pairs of rule name and the source file to get it from
4040
# buildifier: leave-alone, do not sort
4141
ORDER = [
42-
("toc", None),
43-
("common", None),
44-
("pkg_deb", "//pkg/private/deb:deb.bzl"),
45-
("pkg_deb_impl", "//pkg/private/deb:deb.bzl"),
46-
("pkg_sub_rpm", "//pkg:rpm_pfg.bzl"),
47-
("pkg_rpm", "//pkg:rpm_pfg.bzl"),
42+
("toc", None, None),
43+
("common", None, None),
44+
("pkg_deb", "//pkg/private/deb:deb.bzl", None),
45+
("pkg_deb_impl", "//pkg/private/deb:deb.bzl", None),
46+
("pkg_sub_rpm", "//pkg:rpm_pfg.bzl", None),
47+
("pkg_rpm", "//pkg:rpm_pfg.bzl", None),
4848
("pkg_tar", "//pkg/private/tar:tar.bzl"),
4949
("pkg_tar_impl", "//pkg/private/tar:tar.bzl"),
5050
("pkg_zip", "//pkg/private/zip:zip.bzl"),
@@ -72,7 +72,7 @@ genrule(
7272
deps = [
7373
":rules_pkg_lib",
7474
"//toolchains/rpm:standard_package",
75-
"@aspect_bazel_lib//lib:expand_make_vars"
75+
"@aspect_bazel_lib//lib:expand_make_vars",
7676
],
7777
)
7878
for rule, src in ORDER

pkg/private/tar/tar.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
"""Rules for making .tar files."""
1515

16+
load("@aspect_bazel_lib//lib:expand_make_vars.bzl", "expand_variables")
1617
load("//pkg:providers.bzl", "PackageVariablesInfo")
1718
load(
1819
"//pkg/private:pkg_files.bzl",
@@ -25,7 +26,6 @@ load(
2526
"write_manifest",
2627
)
2728
load("//pkg/private:util.bzl", "setup_output_files", "substitute_package_variables")
28-
load("@aspect_bazel_lib//lib:expand_make_vars.bzl", "expand_variables")
2929

3030
# TODO(aiuto): Figure out how to get this from the python toolchain.
3131
# See check for lzma in archive.py for a hint at a method.
@@ -127,7 +127,6 @@ def _pkg_tar_impl(ctx):
127127
expanded_replacement = expand_variables(ctx, replacement)
128128
expanded_remap_paths[expanded_prefix] = expanded_replacement
129129

130-
131130
path_mapper = lambda path: _remap(expanded_remap_paths, path)
132131

133132
mapping_context = create_mapping_context_from_ctx(

tests/tar/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ pkg_tar(
633633
":tree_artifact_to_rename",
634634
],
635635
remap_paths = {
636-
"/rename_me": "$(COMPILATION_MODE)"
636+
"/rename_me": "$(COMPILATION_MODE)",
637637
},
638638
)
639639

0 commit comments

Comments
 (0)