diff --git a/scripts/build/build.ts b/scripts/build/build.ts index a7fea746..60361fab 100644 --- a/scripts/build/build.ts +++ b/scripts/build/build.ts @@ -28,7 +28,7 @@ export default async function _build(pkg: Package): Promise { async function __build(pkg: Package): Promise { const [deps, wet, resolved] = await calc_deps() await clean() - const env = mkenv() + const env = await mkenv() const dst = cellar.keg(pkg).mkpath() const [src, src_tarball] = await fetch_src(pkg) ?? [] const installation = await build() @@ -70,8 +70,8 @@ async function __build(pkg: Package): Promise { } } - function mkenv() { - const env = useShellEnv({ installations: resolved}) + async function mkenv() { + const env = await useShellEnv({ installations: resolved}) if (platform == 'darwin') { env['MACOSX_DEPLOYMENT_TARGET'] = ['11.0'] diff --git a/scripts/test.ts b/scripts/test.ts index 36545d7a..66dc2f8f 100755 --- a/scripts/test.ts +++ b/scripts/test.ts @@ -37,7 +37,7 @@ async function test(self: Installation) { // get linked when they're tested. await link(self) - const env = useShellEnv({ installations: [self, ...installations] }) + const env = await useShellEnv({ installations: [self, ...installations] }) let text = undent` #!/bin/bash