Skip to content

Conversation

@ukautz
Copy link

@ukautz ukautz commented Sep 18, 2012

Check for dependencies of downloaders (eg whether git, hg, svn.. binary installed, if package requires so) on upload/install and dies with runtime error, if requirements not satisfied.

Ulrich Kautz added 2 commits September 18, 2012 17:58
…all / update -> throw runtime exception if not satisfied
Copy link
Contributor

Choose a reason for hiding this comment

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

$executes[] =

Copy link
Contributor

Choose a reason for hiding this comment

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

Why adding the localRepo here ? It will always be the same.

@ukautz
Copy link
Author

ukautz commented Sep 18, 2012

Thx guys. Fixed.

Copy link
Contributor

Choose a reason for hiding this comment

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

'install' === $operation->getJobType()

Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep the phpdoc aligned (the PHP-CS-Fixer can fix it for you)

@Seldaek
Copy link
Member

Seldaek commented Sep 19, 2012

Is there really a huge benefit to this? It adds more code, more stuff to maintain, and I don't know if saving a few seconds in the odd case that you don't have a git/hg/svn binary available warrants it.

@ukautz
Copy link
Author

ukautz commented Sep 19, 2012

Up to you guys.

IMO any tool should make aware of missing requirements as early as possible. You cannot assume hg, svn and git are always available (don't know about Mac&Win, but on Linux, not even Ubuntu pre-installs them).

@GromNaN
Copy link
Contributor

GromNaN commented Jan 30, 2015

Running these check commands will have a bad impact on composer performance. Having such check sounds interesting to unserstand issues, but useless once the system is configured.

To avoid performance impacts, but get debug information, it would be better to run the check only after an error occured to check if it is due to a missing system requirement of a runtime error.

@Seldaek
Copy link
Member

Seldaek commented Jan 30, 2015

Well we already do that if a git clone fails and you don't have git for example, to be honest nobody complained about this in years so I think it can safely be closed.

@Seldaek Seldaek closed this Jan 30, 2015
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.

5 participants