spago
spago copied to clipboard
Issue parsing execArgs flag
In commands such as run and test, the execArgs flag is designed to accept additional arguments. However, when no arguments are explicitly passed for execArgs, it is still being parsed as Just [] instead of Nothing
- Consequently, any configuration set in the exec_args section of spago.yaml is not being utilized. Because we always give preference to the explicitly passed args.
execArgs = fromMaybe [] (runArgs.execArgs <|> runConf _.exec_args)
here
runArgs.execArgsis the one we get from the option parserexec_argsis the one from config
Fix:
- To Change the
execArgsparsing logic. - Or should we combine both the config args and the explicitly parsed args?
Created a PR: https://github.com/purescript/spago/pull/1188#issue-2154356812
Fixed in #1188