[🐞] qwik-build
loses environment variables during parallel builds
#6956
Labels
qwik-build
loses environment variables during parallel builds
#6956
Which component is affected?
Starters / CLI
Describe the bug
I am running parallel
qwik builds
viaconcurrently "PUBLIC_A=1 qwik build" "PUBLIC_A=2 qwik build"
.I'm expecting my build output to have
PUBLIC_A
be1
and2
for the first and second builds respectively.Instead,
PUBLIC_A
is1
for the first build's client, then2
for all subsequent builds (e.g. first build's server build).It appears that in
run-build-command.ts
callsexecaCommand
, the spawned instance uses the latest environment variable values instead of the current process's values.Reproduction
N/A
Steps to reproduce
No response
System Info
Additional Information
I assume this is fixable by replacing
env: { FORCE_COLOR: true }
withenv: { ...process.env, FORCE_COLOR: true }
, so that the subsequentbuild.*
tasks inherit the current environment variables instead of attempting to read the way they've changed since this process was run.Sorry about the lack of repro URL. It would simply take too long to setup.
The text was updated successfully, but these errors were encountered: