-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Process] Silent behaviour change if folder doesn't exist #18249
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
Comments
It's a bit weird that you can set the cwd via the constructor and via the setter. Both have slightly different behavior. |
@shopblocks are you suggesting the behaviour was different in previous Symfony versions? |
Im afraid this is the first version I have tested this with, so do not know whether it is different to previous versions or not. |
|
We could trigger a deprecation in 3.2 when a non-existing directory is to be used as the working directory and throw an exception in 4.0. |
@shopblocks would you like to submit a PR triggering that deprecation? (branch 3.4) |
I'm not sure what you mean by that. What is deprecated? The unexpected behaviour? |
It's not deprecated yet, but the unexpected behavior could be yes. |
Okay, i'll take a look at this. |
…exbowers) This PR was squashed before being merged into the 3.4 branch (closes #23708). Discussion ---------- Added deprecation to cwd not existing Fixes #18249 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? |no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #18249 | License | MIT | Doc PR | - Commits ------- 261eae9 Added deprecation to cwd not existing Fixes #18249
* 3.4: (26 commits) bumped Symfony version to 3.3.11 updated VERSION for 3.3.10 updated CHANGELOG for 3.3.10 bumped Symfony version to 2.8.29 updated VERSION for 2.8.28 updated CHANGELOG for 2.8.28 bumped Symfony version to 2.7.36 updated VERSION for 2.7.35 update CONTRIBUTORS for 2.7.35 updated CHANGELOG for 2.7.35 Added deprecation to cwd not existing Fixes #18249 [Session] fix MongoDb session handler to gc all expired sessions Add changelog for deprecated DbalSessionHandler [Security] Look at headers for switch user username parameter Updated Test name and exception name to be more accurate newline at end of file changed exception message Ahh, I see. It actually wants a newline! Removed newline Created new Exception to throw and modified tests. ...
In Process, the second parameter is the
cwd
. If this folder doesn't exist, it seems to run a getcwd.This should initiate / throw a warning or exception, since the behaviour change is / can be critical.
For us, we were performing git clone into a folder, but the folder doesn't exist, so it clones into the folder where console is ran from. This is on ~3.0
The text was updated successfully, but these errors were encountered: