feat: add option for process cwd (.env support)

This commit is contained in:
eric
2026-03-04 14:21:45 +01:00
parent 4064dec23c
commit f7586a76e4
11 changed files with 83 additions and 18 deletions

View File

@@ -36,14 +36,14 @@ def _bun_install_repository_impl(repository_ctx):
repository_ctx.symlink(bun_lockfile, "bun.lockb")
result = repository_ctx.execute(
[str(bun_bin), "install", "--frozen-lockfile", "--no-progress"],
[str(bun_bin), "--bun", "install", "--frozen-lockfile", "--no-progress"],
timeout = 600,
quiet = False,
environment = {"HOME": str(repository_ctx.path("."))},
)
if result.return_code:
fail("""bun_install failed running `bun install --frozen-lockfile`.
fail("""bun_install failed running `bun --bun install --frozen-lockfile`.
stdout:
{}
stderr: