hakre
hakre

Reputation: 197682

Is the Composer Version Number Unambiguous?

Displaying the composer version like:

$ composer.phar -V
Composer version e33aebc

Shows some string I assume of is a shortened git SHA-1 hash.

Is that version number/string unambiguous for now and in the future?

Upvotes: 2

Views: 205

Answers (2)

hakre
hakre

Reputation: 197682

Now it is. Use full hash in version information of dev phars, fixes #1502.

Upvotes: 1

johannes
johannes

Reputation: 15969

The version ID there is the Git revision ID, so yes it is (almost) unambiguous. The ID you mentioned relates to the revision after this change: https://github.com/composer/composer/commit/e33aebc

So, why did I say "almost"? - well it's jus the shortned SHA-1 used by git, so in theory it might happen tht two revisions share that small part of the sha key, but that's quite unlickely to happen.

Upvotes: 0

Related Questions