Skip to content

Commit

Permalink
fix(core): use windowsHide for hashRuntime
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli authored and vsavkin committed May 31, 2023
1 parent 5afe34e commit b0e3a1d
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions packages/nx/src/hasher/task-hasher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,19 +579,27 @@ class TaskHasherImpl {
const mapKey = `runtime:${runtime}`;
if (!this.runtimeHashes[mapKey]) {
this.runtimeHashes[mapKey] = new Promise((res, rej) => {
exec(runtime, (err, stdout, stderr) => {
if (err) {
rej(
new Error(`Nx failed to execute {runtime: '${runtime}'}. ${err}.`)
);
} else {
const value = `${stdout}${stderr}`.trim();
res({
details: { [`runtime:${runtime}`]: value },
value,
});
exec(
runtime,
{
windowsHide: true,
},
(err, stdout, stderr) => {
if (err) {
rej(
new Error(
`Nx failed to execute {runtime: '${runtime}'}. ${err}.`
)
);
} else {
const value = `${stdout}${stderr}`.trim();
res({
details: { [`runtime:${runtime}`]: value },
value,
});
}
}
});
);
});
}
return this.runtimeHashes[mapKey];
Expand Down

1 comment on commit b0e3a1d

@vercel
Copy link

@vercel vercel bot commented on b0e3a1d May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.