From c71f5d2186017d36b23995e1e199a989cca9d65a Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 4 Mar 2026 08:57:26 +0100 Subject: [PATCH] fix: tests --- .bazelignore | 1 + MODULE.bazel.lock | 2 +- bun/extensions.bzl | 4 ++-- internal/bun_install.bzl | 6 ++++-- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .bazelignore diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 0000000..92b2793 --- /dev/null +++ b/.bazelignore @@ -0,0 +1 @@ +.direnv diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index eed6b86..962e12e 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -189,7 +189,7 @@ "moduleExtensions": { "//bun:extensions.bzl%bun": { "general": { - "bzlTransitiveDigest": "OnZvc44B8aCFH7E+udHBoIoIkL0AeKA27+2lmg/S15Q=", + "bzlTransitiveDigest": "Q0uQOwFAgAU+etePCZ4TUDO+adLX7Z0EmRLaEsKgncw=", "usagesDigest": "qk1PDh3WICa0VONYKXJLsmWCesNJxz3Jkb/aH/voIeI=", "recordedInputs": [ "REPO_MAPPING:,bazel_tools bazel_tools" diff --git a/bun/extensions.bzl b/bun/extensions.bzl index f9624f6..6eec597 100644 --- a/bun/extensions.bzl +++ b/bun/extensions.bzl @@ -1,5 +1,5 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("//internal:bun_install.bzl", _bun_install_repository = "_bun_install_repository") +load("//internal:bun_install.bzl", "bun_install_repository") load(":version.bzl", "BUN_VERSION") _BUN_ARCHIVES = { @@ -67,7 +67,7 @@ _install = tag_class( def _bun_install_impl(ctx): for mod in ctx.modules: for install in mod.tags.install: - _bun_install_repository( + bun_install_repository( name = install.name, package_json = install.package_json, bun_lockfile = install.bun_lockfile, diff --git a/internal/bun_install.bzl b/internal/bun_install.bzl index 9d51d16..db0a01e 100644 --- a/internal/bun_install.bzl +++ b/internal/bun_install.bzl @@ -61,7 +61,7 @@ stderr: ) -_bun_install_repository = repository_rule( +bun_install_repository = repository_rule( implementation = _bun_install_repository_impl, attrs = { "package_json": attr.label(mandatory = True, allow_single_file = True), @@ -74,6 +74,8 @@ _bun_install_repository = repository_rule( }, ) +_bun_install_repository = bun_install_repository + def bun_install(name, package_json, bun_lockfile): """Create an external repository containing installed node_modules. @@ -91,7 +93,7 @@ def bun_install(name, package_json, bun_lockfile): ) """ - _bun_install_repository( + bun_install_repository( name = name, package_json = package_json, bun_lockfile = bun_lockfile,