-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error returns code 0 #2392
Comments
Can you show you deploy.php? Or provide some example? |
I'm not sure my config can be relevant (apart from the error on escape, that's secondary). |
It's in the Deployer options <?php
namespace Deployer;
require_once __DIR__.'/vendor/deployer/deployer/recipe/symfony.php';
set('repository', '[email protected]:deployphp/deployer.git');
$host = host('deployer.org');
$host->setRemoteUser('test');
$host->setDeployPath('/var/www/'); ./vendor/bin/dep deploy --no-ansi
./vendor/bin/dep deploy --ansi
./vendor/bin/dep deploy --no-interaction
|
I can't (yet) oversee the impact of this commit 18bdfc8#diff-b872a77de62f6d05e055c5c2c19e0175ad4b9f4075531eee37dcba67a6d3cea8R63 Dump of $input->getOptions(): array:18 [
"tag" => null
"revision" => null
"branch" => null
"option" => []
"limit" => null
"no-hooks" => false
"plan" => false
"start-from" => null
"log" => null
"profile" => null
"help" => false
"quiet" => false
"verbose" => false
"version" => false
"ansi" => true
"no-ansi" => false
"no-interaction" => true
"file" => null
] foreach ($option as $value) {
+ if(is_bool($value)){
+ $options[] = "--$name";
+ continue;
+ }
+
$options[] = "--$name " . self::escape((string)$value);
} Output of -"--ansi 1 --decorated"
+"--ansi --decorated" |
…2402) * Boolean options should not go through the `self::escape` function. > Deployer\Support\Stringify::escape(): Argument #1 ($token) must be of type string, bool given Fixes #2392. * Update StringifyTest.php * Update StringifyTest.php Co-authored-by: Anton Medvedev <[email protected]>
…eployphp#2402) * Boolean options should not go through the `self::escape` function. > Deployer\Support\Stringify::escape(): Argument deployphp#1 ($token) must be of type string, bool given Fixes deployphp#2392. * Update StringifyTest.php * Update StringifyTest.php Co-authored-by: Anton Medvedev <[email protected]>
I'm getting following error
See attached image:
![Schermata da 2021-01-28 11-17-55](https://user-images.githubusercontent.com/179866/106123662-81f1f200-615a-11eb-8a18-6bba54005816.png)
apart from weird error, I would expect that such case would return a code different from zero (otherwise I'm not able to notice that something went wrong)
The text was updated successfully, but these errors were encountered: