Skip to content

Commit b0b1d47

Browse files
authored
Pre commit autoupdate and format files (#913)
* chore(deps): pre-commit autoupdate * format files
1 parent 0482d31 commit b0b1d47

File tree

19 files changed

+104
-91
lines changed

19 files changed

+104
-91
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
repos:
77
# Check formatting and lint for starlark code
88
- repo: https://github.com/keith/pre-commit-buildifier
9-
rev: 6.3.3
9+
rev: 8.0.0
1010
hooks:
1111
- id: buildifier
1212
- id: buildifier-lint

WORKSPACE.bzlmod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ experimental_find_system_git_bzlmod(
2121
name = "rules_pkg_git",
2222
verbose = False,
2323
)
24+
2425
register_toolchains(
2526
"@rules_pkg_git//:git_auto_toolchain",
2627
"//toolchains/git:git_missing_toolchain",

examples/rpm/debuginfo/BUILD

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@
1313
# limitations under the License.
1414
# -*- coding: utf-8 -*-
1515

16-
1716
load("@rules_pkg//pkg:mappings.bzl", "pkg_files")
1817
load("@rules_pkg//pkg:rpm.bzl", "pkg_rpm")
1918

2019
cc_binary(
2120
name = "test",
22-
copts = ["-g"],
2321
srcs = [
2422
"test.c",
2523
],
24+
copts = ["-g"],
2625
)
2726

2827
pkg_files(
@@ -37,12 +36,12 @@ pkg_rpm(
3736
srcs = [
3837
":rpm_files",
3938
],
40-
release = "0",
41-
version = "1",
39+
debuginfo = True,
40+
description = "Description",
4241
license = "Some license",
42+
release = "0",
4343
summary = "Summary",
44-
description = "Description",
45-
debuginfo = True,
44+
version = "1",
4645
)
4746

4847
# If you have rpmbuild, you probably have rpm2cpio too.

examples/rpm/debuginfo/MODULE.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
module(name = "rules_pkg_example_rpm_system_rpmbuild_bzlmod")
1616

1717
bazel_dep(name = "rules_pkg")
18-
1918
local_path_override(
2019
module_name = "rules_pkg",
2120
path = "../../..",

examples/rpm/nospecfile/BUILD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ pkg_rpm(
3030
srcs = [
3131
":rpm_files",
3232
],
33-
release = "0",
34-
version = "1",
35-
summary = "rules_pkg example RPM",
33+
architecture = "x86_64",
3634
description = "This is a package description.",
3735
license = "Apache License, v2.0",
38-
architecture = "x86_64",
39-
requires = [
40-
"somerpm",
41-
],
4236
provides = [
4337
"somefile",
4438
],
39+
release = "0",
40+
requires = [
41+
"somerpm",
42+
],
43+
summary = "rules_pkg example RPM",
44+
version = "1",
4545
)
4646

4747
# If you have rpmbuild, you probably have rpm2cpio too.

examples/rpm/nospecfile/MODULE.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
module(name = "rules_pkg_example_rpm_system_rpmbuild_bzlmod")
1616

1717
bazel_dep(name = "rules_pkg")
18-
1918
local_path_override(
2019
module_name = "rules_pkg",
2120
path = "../../..",

examples/rpm/prebuilt_rpmbuild/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ pkg_rpm(
1919
name = "test-rpm",
2020
data = [
2121
"BUILD",
22-
"WORKSPACE",
2322
"README.md",
23+
"WORKSPACE",
2424
"test_rpm.spec",
2525
],
2626
release = "0",

examples/rpm/subrpm/BUILD

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# -*- coding: utf-8 -*-
1515

1616
load("@rules_pkg//pkg:mappings.bzl", "pkg_files")
17-
load("@rules_pkg//pkg:rpm.bzl", "pkg_sub_rpm", "pkg_rpm")
17+
load("@rules_pkg//pkg:rpm.bzl", "pkg_rpm", "pkg_sub_rpm")
1818

1919
pkg_files(
2020
name = "subrpm_files",
@@ -26,17 +26,17 @@ pkg_files(
2626
pkg_sub_rpm(
2727
name = "subrpm",
2828
package_name = "subrpm",
29-
summary = "Test subrpm",
30-
description = "Test subrpm description",
31-
requires = [
32-
"somerpm",
29+
srcs = [
30+
":subrpm_files",
3331
],
32+
description = "Test subrpm description",
3433
provides = [
3534
"someprovision",
3635
],
37-
srcs = [
38-
":subrpm_files",
36+
requires = [
37+
"somerpm",
3938
],
39+
summary = "Test subrpm",
4040
)
4141

4242
pkg_files(
@@ -52,21 +52,21 @@ pkg_rpm(
5252
srcs = [
5353
":rpm_files",
5454
],
55-
release = "0",
56-
version = "1",
57-
summary = "rules_pkg example RPM",
55+
architecture = "x86_64",
5856
description = "This is a package description.",
5957
license = "Apache License, v2.0",
60-
architecture = "x86_64",
61-
requires = [
62-
"somerpm",
63-
],
6458
provides = [
6559
"somefile",
6660
],
61+
release = "0",
62+
requires = [
63+
"somerpm",
64+
],
6765
subrpms = [
6866
":subrpm",
6967
],
68+
summary = "rules_pkg example RPM",
69+
version = "1",
7070
)
7171

7272
# If you have rpmbuild, you probably have rpm2cpio too.

examples/rpm/subrpm/MODULE.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
module(name = "rules_pkg_example_rpm_system_rpmbuild_bzlmod")
1616

1717
bazel_dep(name = "rules_pkg")
18-
1918
local_path_override(
2019
module_name = "rules_pkg",
2120
path = "../../..",

examples/rpm/system_rpmbuild/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ pkg_rpm(
1919
name = "test-rpm",
2020
data = [
2121
"BUILD",
22-
"WORKSPACE",
2322
"README.md",
23+
"WORKSPACE",
2424
"test_rpm.spec",
2525
],
2626
release = "0",

0 commit comments

Comments
 (0)