Skip to content

Commit

Permalink
Update internal/linker/link_node_modules.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Scott <[email protected]>
  • Loading branch information
Silic0nS0ldier and christianscott authored Nov 27, 2023
1 parent 00dd61b commit 88019fe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/linker/link_node_modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,8 @@ function main() {

// RBE HACK Advertise links
log('Saving symlink paths...');
if (!process.env.NM_SYMLINKS) {
throw new Error();
}
fs.writeFileSync(process.env.NM_SYMLINKS, JSON.stringify(symlinks), 'utf-8');
const nmSymlinks = definedOrThrow(process.env.NM_SYMLINKS, 'expected $NM_SYMLINKS to be set in the environment');
fs.writeFileSync(nmSymlinks, JSON.stringify(symlinks), 'utf-8');

log('Linking finished');
}
Expand Down

0 comments on commit 88019fe

Please sign in to comment.