From 0860e6f801d14ceef23a30a19a52abca808b7916 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Sat, 4 Jan 2025 18:40:17 +0100 Subject: [PATCH] Use bazel_dep for libuv --- MODULE.bazel | 11 ++--------- vendor/libuv.BUILD | 6 ------ 2 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 vendor/libuv.BUILD diff --git a/MODULE.bazel b/MODULE.bazel index fc8010bcf7c..3cdd4ed1335 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -8,6 +8,7 @@ bazel_dep(name = "rules_swift", version = "2.2.3", repo_name = "build_bazel_rule bazel_dep(name = "rules_xcodeproj", version = "2.8.1") bazel_dep(name = "aspect_rules_js", version = "2.1.0") bazel_dep(name = "rules_nodejs", version = "6.3.2") +bazel_dep(name = "libuv", version = "1.48.0") node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True) node.toolchain(node_version = "20.14.0") @@ -54,16 +55,8 @@ http_archive( urls = ["https://github.com/glfw/glfw/releases/download/3.4/glfw-3.4.zip"], ) -new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository") - -new_local_repository( - name = "libuv", - build_file = "@//vendor:libuv.BUILD", - path = "/opt/homebrew/opt/libuv", -) - darwin_config = use_repo_rule("//platform/darwin:bazel/darwin_config_repository_rule.bzl", "darwin_config") darwin_config( name = "darwin_config", -) +) \ No newline at end of file diff --git a/vendor/libuv.BUILD b/vendor/libuv.BUILD deleted file mode 100644 index f37a18d41ae..00000000000 --- a/vendor/libuv.BUILD +++ /dev/null @@ -1,6 +0,0 @@ -cc_library( - name = "libuv", - hdrs = glob(["include/**/*.h"]), - includes = ["include"], - visibility = ["//visibility:public"], -)