Skip to content
Prev Previous commit
Next Next commit
[FIX] cli: flatten all build_env_args instead of only the first
The list comprehension [x[0] for x in args.build_env_args] silently
discarded all but the first value when multiple args were passed in a
single --build-env-args invocation (e.g. --build-env-args VAR1 VAR2).
Now properly flattens all sub-lists.
  • Loading branch information
nhomar committed Feb 14, 2026
commit b6e3ae2cef6fe9efb16064fdc75ba562f900546b
2 changes: 1 addition & 1 deletion src/travis2docker/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def main(return_result=False):
deployv = args.deployv
rcfiles_args = args.add_rcfile and args.add_rcfile.split(',')
runs_at_the_end_script = args.runs_at_the_end_script or None
build_env_args = [build_env_args[0] for build_env_args in args.build_env_args]
build_env_args = [arg for sublist in args.build_env_args for arg in sublist]
rcfiles = [(expanduser(rc_file), os.path.join('$HOME', os.path.basename(rc_file))) for rc_file in rcfiles_args]
if no_clone:
os_kwargs = {
Expand Down
Loading