-
Notifications
You must be signed in to change notification settings - Fork 27
Manifest file strategy (updated) #37
base: master
Are you sure you want to change the base?
Conversation
…updater into pjcdawkins-manifest-strategy
src/Strategy/ManifestStrategy.php
Outdated
throw new RuntimeException(sprintf('Failed to write file: %s', $tmpFilename)); | ||
} | ||
|
||
$tmpSha = sha1_file($tmpFilename); |
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.
Are you sure, that sha1 should be used for version verification? Considering recent findings on http://shattered.io/ it is possible to create another phar with same sha1 hash.
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.
It's on the todo list. I'm thinking about scrapping sha1 altogether since this is a new feature.
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.
Done!
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.
Slight backtrack. I'm allowing SHA-1, but not by default, to allow for any transitioning, e.g. platform.sh which this is based of off.
@humbug/core Ready for review. |
A revision of the original #15, to work around not having write access on older PRs.