When using get()
in array the overwrite with -o
option is not respected
#4043
Unanswered
ChristianVermeulen
asked this question in
Bugs
Replies: 2 comments 5 replies
-
I can see only one variable overwritten |
Beta Was this translation helpful? Give feedback.
1 reply
-
I see. The reason is order of evaluation. Your examples is calculated on php loading time. Only after, arguments get parsed. You can delay evaluation of config using callback: set('app_env', 'forgot_to_set');
set('array_test', function () {
return ['key' => get('app_env')];
}); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Deployer Version
v7.5.8
Target OS
OSX 14.6.1 & github actions ubuntu
Which PHP version are you using?
PHP 8.3
Content of deploy.php or deploy.yaml
Steps to reproduce
Create a test task:
run the test with overwrite option:
vendor/bin/dep test -o app_env=stg
see result:
Beta Was this translation helpful? Give feedback.
All reactions