fix: tests

This commit is contained in:
Eric
2026-03-04 08:57:26 +01:00
parent db16748cd1
commit 5302f573fb
4 changed files with 8 additions and 5 deletions

1
.bazelignore Normal file
View File

@@ -0,0 +1 @@
.direnv

2
MODULE.bazel.lock generated
View File

@@ -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"

View File

@@ -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,

View File

@@ -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,