Last active
December 17, 2015 07:09
-
-
Save meonkeys/5570869 to your computer and use it in GitHub Desktop.
demonstrate problem with composer vcs repo changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "+++create basic composer.json - require goodby/csv" | |
cat > composer.json <<EOF | |
{ | |
"require": { | |
"goodby/csv": "*" | |
} | |
} | |
EOF | |
echo "+++install goodby/csv and dependencies" | |
composer install | |
echo "+++change composer.json to use my fork" | |
cat > composer.json <<EOF | |
{ | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/meonkeys/csv.git" | |
} | |
], | |
"require": { | |
"goodby/csv": "*" | |
} | |
} | |
EOF | |
echo "+++try to update composer.lock" | |
composer update | |
echo "+++remote for goodby/csv did not change" | |
grep meonkeys composer.lock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment