Skip to content

Commit

Permalink
chore: bump to bazel 7 and cleanup examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie authored and Jamie committed Nov 15, 2024
1 parent fb385ca commit 85adaa5
Show file tree
Hide file tree
Showing 58 changed files with 134 additions and 4,434 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
7.4.1
6 changes: 6 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
110 changes: 110 additions & 0 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ rules_foreign_cc_dependencies(
register_preinstalled_tools = True,
)

load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)

apple_support_dependencies()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()
Expand Down
9 changes: 9 additions & 0 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def yacl_deps():
_rule_python()
_rules_foreign_cc()
_com_github_madler_zlib()
_build_bazel_apple_support()
_com_google_protobuf()
_com_github_gflags_gflags()
_com_google_googletest()
Expand Down Expand Up @@ -417,3 +418,11 @@ def _lib25519():
"https://lib25519.cr.yp.to/lib25519-20240321.tar.gz",
],
)

def _build_bazel_apple_support():
maybe(
http_archive,
name = "build_bazel_apple_support",
sha256 = "b53f6491e742549f13866628ddffcc75d1f3b2d6987dc4f14a16b242113c890b",
url = "https://github.com/bazelbuild/apple_support/releases/download/1.17.1/apple_support.1.17.1.tar.gz",
)
41 changes: 0 additions & 41 deletions examples/.bazelrc

This file was deleted.

1 change: 0 additions & 1 deletion examples/.bazelversion

This file was deleted.

13 changes: 0 additions & 13 deletions examples/BUILD.bazel

This file was deleted.

63 changes: 0 additions & 63 deletions examples/WORKSPACE

This file was deleted.

40 changes: 0 additions & 40 deletions examples/hesm2/BUILD.bazel

This file was deleted.

Loading

0 comments on commit 85adaa5

Please sign in to comment.