Skip to content

Commit

Permalink
repo-sync-2024-10-24T15:01:52+0800 (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie authored Oct 24, 2024
1 parent f810593 commit 675147e
Show file tree
Hide file tree
Showing 7 changed files with 162 additions and 3 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.0
20 changes: 20 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2024 Ant Group Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

###############################################################################
# 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
###############################################################################
123 changes: 123 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 @@ -19,6 +19,7 @@ def yacl_deps():
_rule_proto()
_rule_python()
_rules_foreign_cc()
_build_bazel_apple_support()
_com_github_madler_zlib()
_com_google_protobuf()
_com_github_gflags_gflags()
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",
)
2 changes: 1 addition & 1 deletion examples/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
7.4.0
2 changes: 1 addition & 1 deletion examples/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ new_local_repository(
path = "..",
)

load("//repositories.bzl", "example_deps")
load("//:repositories.bzl", "example_deps")

example_deps()

Expand Down

0 comments on commit 675147e

Please sign in to comment.