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
act on target-dir changes during update #2279
Conversation
…s or not a dir, use ensureDirectoryExists() instead
| */ | ||
| public function __construct(IOInterface $io, Composer $composer, $type = 'library') | ||
| public function __construct(IOInterface $io, Composer $composer, $type = 'library', $filesystem = NULL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please write null lowercased
| */ | ||
| public function __construct(IOInterface $io, Composer $composer, $type = 'library') | ||
| public function __construct(IOInterface $io, Composer $composer, $type = 'library', $filesystem = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type hint for $filesystem?
|
This should be ready. We now even test for it. |
|
Thanks a lot, looking good! |
|
Well actually there is one potential issue scenario where one adds a target-dir and didn't have one before, then the targetDownloadPath will be part of the initialDownloadPath and will be wiped :) I'll add a check for this, it's fairly unlikely anyway but wouldn't produce a happy outcome. |
This fixes #913