-
Notifications
You must be signed in to change notification settings - Fork 29
Add option to not process existing workspace as error #137
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
Conversation
@dantleech wdyt? i agree its a good idea to do something here. we might just output a warning but return state 0, for automatic deployments. or a -f / --force parameter, like with rm? |
Hmm. I tend to do the following in these situations:
But yeah, would be safer with a flag. Maybe it would be better to talk about idempotency: btw. Doctrine does not support this with |
the |
But I think "idempotent" represents what we are doing well. If it doesn't exist, create it, if it does exist, do not do anything. This could also apply to other operations like |
As you want. indempotent is not very common, but..! |
Idempotent is very technical. What about ignore-existing (short i)? Or just print a warning but keep 0 exit state without any option? |
I think |
@dantleech but you think there is worth in keeping this returning a non 0 status at all? |
Yeah, I think we should return non zero if the Some examples of other things: Mysqladmin:
Doctrine:
Postgres
|
okay, convinced. i see the code is already updated. thanks a lot. |
Add option to not process existing workspace as error
the build fail is a hhvm issue with a test taking more than 1 second which has nothing to do with this PR |
Thanks! As previously, a minor release will be nice. |
i would love to fix the hhvm fail before the release. anybody got a quick idea how to tell phpunit that its ok if a test takes > 1 second? |
You can use the |
there you go, just tagged 1.2.2 thanks a lot! |
silent-on-exist
or better if you prefer