mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-24 17:44:21 +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
|
||||
else exitWithError (ExitFailure 1) (T.pack $ makeNodeVersionMismatchMessage nodeVersion)
|
||||
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
|
||||
writeChan chan $
|
||||
J.JobMessage
|
||||
|
Loading…
Reference in New Issue
Block a user