Skip to content

Commit

Permalink
Merge pull request #8391 from Agoric/mhofman/workaround-babel-overrid…
Browse files Browse the repository at this point in the history
…e-mistake

Workaround babel override mistake
  • Loading branch information
mergify[bot] committed Nov 7, 2023
2 parents 38a11e0 + 877c1a1 commit 1831bf3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion packages/internal/src/node/createBundles.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* global process */
// Use modules not prefixed with `node:` since some deploy scripts may
// still be running in esm emulation
import path from 'path';
Expand Down Expand Up @@ -29,7 +30,13 @@ export const createBundlesFromAbsolute = async sourceBundles => {

for (const args of cacheToArgs.values()) {
console.log(BUNDLE_SOURCE_PROGRAM, ...args);
const { status } = spawnSync(prog, args, { stdio: 'inherit' });
const env = /** @type {NodeJS.ProcessEnv} */ (
/** @type {unknown} */ ({
__proto__: process.env,
LOCKDOWN_OVERRIDE_TAMING: 'severe',
})
);
const { status } = spawnSync(prog, args, { stdio: 'inherit', env });
status === 0 ||
Fail`${q(BUNDLE_SOURCE_PROGRAM)} failed with status ${q(status)}`;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/solo/src/entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'esm';

// we need to enable Math.random as a workaround for 'brace-expansion' module
// (dep chain: temp->glob->minimatch->brace-expansion)
import '@endo/init';
import '@endo/init/legacy.js';

import process from 'process';
import path from 'path';
Expand Down
2 changes: 1 addition & 1 deletion packages/solo/src/pipe-entrypoint.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global process */
// @ts-check
import '@endo/init/pre-bundle-source.js';
import '@endo/init';
import '@endo/init/unsafe-fast.js';

import { parse, stringify } from '@endo/marshal';
import { makePromiseKit } from '@endo/promise-kit';
Expand Down

0 comments on commit 1831bf3

Please sign in to comment.