Add multiple --environment-file args - #3805
Merged
Merged
Conversation
Contributor
Author
|
Tested and works. Here is the testing code: $cat <<EOF > test1.env
FIRST_VAR=apple
SHARED_VAR=original_value
EOF
$cat <<EOF > test2.env
SECOND_VAR=banana
SHARED_VAR=overridden_value
EOF
$~/go/bin/incus launch images:debian/13 env-test \
--environment-file test1.env \
--environment-file test2.env
Launching env-test
Retrieving image: Unpacking image
$~/go/bin/incus config show env-test | grep environment
environment.FIRST_VAR: apple
environment.SECOND_VAR: banana
environment.SHARED_VAR: overridden_value
|
bensmrs
requested changes
Aug 10, 2026
AJRepo
force-pushed
the
ajrepo_multiple_env_files
branch
4 times, most recently
from
August 10, 2026 16:30
470bb4d to
cd45062
Compare
stgraber
force-pushed
the
ajrepo_multiple_env_files
branch
from
August 10, 2026 21:45
cd45062 to
8b9f727
Compare
Signed-off-by: AJRepo <7245631+AJRepo@users.noreply.github.com>
Signed-off-by: AJRepo <7245631+AJRepo@users.noreply.github.com>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
stgraber
force-pushed
the
ajrepo_multiple_env_files
branch
from
August 10, 2026 21:54
8b9f727 to
73c471a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow the flag --environement-file to be called multiple times with different files as in:
incus launch images:debian/13 env-test
--environment-file test1.env
--environment-file test2.env
See Feature Request #3804
Signed-off-by: AJRepo AJRepo@users.noreply.github.com