Skip to content

Commit 02ce3ed

Browse files
committed
Migrate buildifier to MODULE. This enforces an update to Bazel 7
1 parent accdbd1 commit 02ce3ed

File tree

5 files changed

+287
-850
lines changed

5 files changed

+287
-850
lines changed

.bazeliskrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
USE_BAZEL_VERSION=6.2.0
1+
USE_BAZEL_VERSION=7.6.1

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
1+
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
22

33
buildifier(
44
name = "buildifier",

MODULE.bazel

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Copyright (C) 2022 Swift Navigation Inc.
2+
# Contact: Swift Navigation <dev@swift-nav.com>
3+
#
4+
# This source is subject to the license found in the file 'LICENSE' which must
5+
# be be distributed together with this source. All other rights reserved.
6+
#
7+
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
111
module(
212
name = "rules_swiftnav",
313
version = "0.1.0",
@@ -47,3 +57,10 @@ register_toolchains(
4757

4858
yocto_generic_ext = use_extension("@rules_swiftnav//cc/toolchains/yocto_generic:yocto_generic_extension.bzl", "yocto_generic_extension")
4959
use_repo(yocto_generic_ext, "yocto_generic")
60+
61+
# Register the buildifier toolchain
62+
bazel_dep(
63+
name = "buildifier_prebuilt",
64+
version = "8.2.0.2",
65+
dev_dependency = True,
66+
)

0 commit comments

Comments
 (0)