Skip to content
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

Merged
merged 9 commits into from Sep 25, 2013
Merged

act on target-dir changes during update #2279

merged 9 commits into from Sep 25, 2013

Conversation

chx
Copy link
Contributor

@chx chx commented Sep 20, 2013

This fixes #913

*/
public function __construct(IOInterface $io, Composer $composer, $type = 'library')
public function __construct(IOInterface $io, Composer $composer, $type = 'library', $filesystem = NULL)
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type hint for $filesystem?

@chx
Copy link
Contributor Author

chx commented Sep 22, 2013

This should be ready. We now even test for it.

@Seldaek Seldaek merged commit e32e4ad into composer:master Sep 25, 2013
@Seldaek
Copy link
Member

Seldaek commented Sep 25, 2013

Thanks a lot, looking good!

@Seldaek
Copy link
Member

Seldaek commented Sep 25, 2013

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.

Seldaek added a commit that referenced this pull request Sep 25, 2013
@chx chx deleted the 913 branch September 25, 2013 21:09
digitalkaoz pushed a commit to digitalkaoz/composer that referenced this pull request Nov 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update doesn't work properly after target-dir was removed
4 participants