From d41bd2909be6fbdcefc7f9dd3735bf662c008f9a Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Sat, 12 Mar 2016 11:05:03 +0100 Subject: [PATCH] Make path repository options part of the dist reference hash, fixes #5048 --- src/Composer/Repository/PathRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/PathRepository.php b/src/Composer/Repository/PathRepository.php index ff1eeb544..9c850a672 100644 --- a/src/Composer/Repository/PathRepository.php +++ b/src/Composer/Repository/PathRepository.php @@ -137,7 +137,7 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn $package['dist'] = array( 'type' => 'path', 'url' => $url, - 'reference' => sha1($json), + 'reference' => sha1($json . serialize($this->options)), ); $package['transport-options'] = $this->options;