mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-25 01:52:00 +03:00
Fix environment variable overriding in processes (#1028)
This commit is contained in:
parent
799db73f34
commit
3264b7c66b
@ -111,7 +111,10 @@ runNodeCommandAsJobWithExtraEnv extraEnvVars fromDir command args jobType chan =
|
|||||||
runProcessAsJob nodeCommandProcess jobType chan
|
runProcessAsJob nodeCommandProcess jobType chan
|
||||||
else exitWithError (ExitFailure 1) (T.pack $ makeNodeVersionMismatchMessage nodeVersion)
|
else exitWithError (ExitFailure 1) (T.pack $ makeNodeVersionMismatchMessage nodeVersion)
|
||||||
where
|
where
|
||||||
getAllEnvVars = (++ extraEnvVars) <$> getEnvironment
|
-- Haskell will use the first value for variable name it finds. Since env
|
||||||
|
-- vars in 'extraEnvVars' should override the the inherited env vars, we
|
||||||
|
-- must prepend them.
|
||||||
|
getAllEnvVars = (extraEnvVars ++) <$> getEnvironment
|
||||||
exitWithError exitCode errorMsg = do
|
exitWithError exitCode errorMsg = do
|
||||||
writeChan chan $
|
writeChan chan $
|
||||||
J.JobMessage
|
J.JobMessage
|
||||||
|
Loading…
Reference in New Issue
Block a user