From 5e5b5094227fb984af7133b90f54475c8660376e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 9 Oct 2022 21:19:54 +0200 Subject: [PATCH] Apply buildifier diff --- appimage/appimage.bzl | 4 ++-- appimage/private/tool/BUILD | 6 +++--- appimage/private/tool/tests/BUILD | 2 +- tests/BUILD | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/appimage/appimage.bzl b/appimage/appimage.bzl index a9fce5b..a81b3a9 100644 --- a/appimage/appimage.bzl +++ b/appimage/appimage.bzl @@ -44,11 +44,11 @@ def _appimage_impl(ctx): _ATTRS = { "binary": attr.label(executable = True, cfg = "target"), - "icon": attr.label(default = "@appimagetool.png//file", allow_single_file = True), "build_args": attr.string_list(), "build_env": attr.string_dict(), - "_tool": attr.label(default = "//appimage/private/tool", executable = True, cfg = "exec"), "env": attr.string_dict(doc = "Runtime environment variables. See https://bazel.build/reference/be/common-definitions#common-attributes-tests"), + "icon": attr.label(default = "@appimagetool.png//file", allow_single_file = True), + "_tool": attr.label(default = "//appimage/private/tool", executable = True, cfg = "exec"), } appimage = rule( diff --git a/appimage/private/tool/BUILD b/appimage/private/tool/BUILD index 8dac061..c01a1d6 100644 --- a/appimage/private/tool/BUILD +++ b/appimage/private/tool/BUILD @@ -1,13 +1,13 @@ -load("@rules_python//python:defs.bzl", "py_binary") load("@bazel_skylib//rules:copy_file.bzl", "copy_file") +load("@rules_python//python:defs.bzl", "py_binary", "py_library") copy_file( name = "appimage_runtime_copy", src = select({ - "@platforms//cpu:x86_64": "@appimage_runtime_x86_64//file", "@platforms//cpu:arm64": "@appimage_runtime_aarch64//file", "@platforms//cpu:armv7e-m": "@appimage_runtime_armhf//file", "@platforms//cpu:i386": "@appimage_runtime_i686//file", + "@platforms//cpu:x86_64": "@appimage_runtime_x86_64//file", }), out = "appimage_runtime", allow_symlink = True, @@ -17,10 +17,10 @@ copy_file( copy_file( name = "mksquashfs_copy", src = select({ - "@platforms//cpu:x86_64": "@mksquashfs_x86_64//file", "@platforms//cpu:arm64": "@mksquashfs_aarch64//file", "@platforms//cpu:armv7e-m": "@mksquashfs_armhf//file", "@platforms//cpu:i386": "@mksquashfs_i686//file", + "@platforms//cpu:x86_64": "@mksquashfs_x86_64//file", }), out = "mksquashfs", allow_symlink = True, diff --git a/appimage/private/tool/tests/BUILD b/appimage/private/tool/tests/BUILD index a484ada..4f91630 100644 --- a/appimage/private/tool/tests/BUILD +++ b/appimage/private/tool/tests/BUILD @@ -1,5 +1,5 @@ -load("@rules_python//python:defs.bzl", "py_test") load("@py_deps//:requirements.bzl", "requirement") +load("@rules_python//python:defs.bzl", "py_test") py_test( name = "test_cli", diff --git a/tests/BUILD b/tests/BUILD index 5559be9..c9e621e 100644 --- a/tests/BUILD +++ b/tests/BUILD @@ -1,6 +1,6 @@ -load("//appimage:appimage.bzl", "appimage", "appimage_test") -load("@rules_python//python:defs.bzl", "py_binary", "py_test") load("@py_deps//:requirements.bzl", "requirement") +load("@rules_python//python:defs.bzl", "py_binary", "py_test") +load("//appimage:appimage.bzl", "appimage", "appimage_test") load(":testrules.bzl", "rules_appimage_test_rule") sh_binary(