Skip to content

Commit

Permalink
Apply buildifier diff
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten committed Oct 9, 2022
1 parent f92911c commit 5e5b509
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions appimage/appimage.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions appimage/private/tool/BUILD
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion appimage/private/tool/tests/BUILD
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/BUILD
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit 5e5b509

Please sign in to comment.