fix: tests
This commit is contained in:
1
.bazelignore
Normal file
1
.bazelignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.direnv
|
||||||
2
MODULE.bazel.lock
generated
2
MODULE.bazel.lock
generated
@@ -189,7 +189,7 @@
|
|||||||
"moduleExtensions": {
|
"moduleExtensions": {
|
||||||
"//bun:extensions.bzl%bun": {
|
"//bun:extensions.bzl%bun": {
|
||||||
"general": {
|
"general": {
|
||||||
"bzlTransitiveDigest": "OnZvc44B8aCFH7E+udHBoIoIkL0AeKA27+2lmg/S15Q=",
|
"bzlTransitiveDigest": "Q0uQOwFAgAU+etePCZ4TUDO+adLX7Z0EmRLaEsKgncw=",
|
||||||
"usagesDigest": "qk1PDh3WICa0VONYKXJLsmWCesNJxz3Jkb/aH/voIeI=",
|
"usagesDigest": "qk1PDh3WICa0VONYKXJLsmWCesNJxz3Jkb/aH/voIeI=",
|
||||||
"recordedInputs": [
|
"recordedInputs": [
|
||||||
"REPO_MAPPING:,bazel_tools bazel_tools"
|
"REPO_MAPPING:,bazel_tools bazel_tools"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
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")
|
load(":version.bzl", "BUN_VERSION")
|
||||||
|
|
||||||
_BUN_ARCHIVES = {
|
_BUN_ARCHIVES = {
|
||||||
@@ -67,7 +67,7 @@ _install = tag_class(
|
|||||||
def _bun_install_impl(ctx):
|
def _bun_install_impl(ctx):
|
||||||
for mod in ctx.modules:
|
for mod in ctx.modules:
|
||||||
for install in mod.tags.install:
|
for install in mod.tags.install:
|
||||||
_bun_install_repository(
|
bun_install_repository(
|
||||||
name = install.name,
|
name = install.name,
|
||||||
package_json = install.package_json,
|
package_json = install.package_json,
|
||||||
bun_lockfile = install.bun_lockfile,
|
bun_lockfile = install.bun_lockfile,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ stderr:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
_bun_install_repository = repository_rule(
|
bun_install_repository = repository_rule(
|
||||||
implementation = _bun_install_repository_impl,
|
implementation = _bun_install_repository_impl,
|
||||||
attrs = {
|
attrs = {
|
||||||
"package_json": attr.label(mandatory = True, allow_single_file = True),
|
"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):
|
def bun_install(name, package_json, bun_lockfile):
|
||||||
"""Create an external repository containing installed node_modules.
|
"""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,
|
name = name,
|
||||||
package_json = package_json,
|
package_json = package_json,
|
||||||
bun_lockfile = bun_lockfile,
|
bun_lockfile = bun_lockfile,
|
||||||
|
|||||||
Reference in New Issue
Block a user