Skip to content

Commit

Permalink
[build-tools] add logger to pod install spawn call in `eas/install_…
Browse files Browse the repository at this point in the history
…pods` custom build function (#481)
  • Loading branch information
szdziedzic authored Jan 7, 2025
1 parent c5701e7 commit 7465ff8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/build-tools/src/steps/functions/installPods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,22 @@ export function createInstallPodsBuildFunction(): BuildFunction {
fn: async (stepsCtx, { env }) => {
stepsCtx.logger.info('Installing pods');
await spawn('pod', ['install'], {
stdio: 'pipe',
env,
logger: stepsCtx.logger,
env: {
...env,
LANG: 'en_US.UTF-8',
},
cwd: stepsCtx.workingDirectory,
lineTransformer: (line?: string) => {
if (
!line ||
/\[!\] '[\w-]+' uses the unencrypted 'http' protocol to transfer the Pod\./.exec(line)
) {
return null;
} else {
return line;
}
},
});
},
});
Expand Down

0 comments on commit 7465ff8

Please sign in to comment.