-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psysh: 0.11.21 -> 0.12.3 + build-support/php: update #308608
Changes from all commits
7f75d07
880bbde
7a3eb2e
47bfa0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,10 @@ composerInstallConfigureHook() { | |
cp "$composerLock" composer.lock | ||
fi | ||
|
||
chmod +w composer.{json,lock} | ||
cp ${composerRepository}/composer.{json,lock} . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes the two lock checks below redundant. |
||
chmod +w composer.{json,lock} | ||
|
||
if [[ ! -f "composer.lock" ]]; then | ||
setComposeRootVersion | ||
|
||
|
@@ -71,8 +75,6 @@ composerInstallConfigureHook() { | |
exit 1 | ||
fi | ||
|
||
chmod +w composer.json composer.lock | ||
|
||
echo "Finished composerInstallConfigureHook" | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ php.buildComposerProject (finalAttrs: { | |
--prefix PATH : ${lib.makeBinPath [ _7zz cacert curl git unzip xz ]} | ||
''; | ||
|
||
vendorHash = "sha256-dNNV9fTyGyRoGeDV/vBjn0aMgkaUMsrKQv5AOoiYokQ="; | ||
vendorHash = "sha256-4s912b04PTPbK9+suni9uJ2Cx4qDb8CkMLy6y25a1eQ="; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, this is bad. If we want to not break BC for outside consumers, we would need to introduce |
||
|
||
meta = { | ||
changelog = "https://github.com/composer/composer/releases/tag/${finalAttrs.version}"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
{ fetchFromGitHub, lib, php }: | ||
{ fetchFromGitHub, fetchurl, lib, php }: | ||
|
||
php.buildComposerProject (finalAttrs: { | ||
pname = "psysh"; | ||
version = "0.11.21"; | ||
version = "0.12.3"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "bobthecow"; | ||
repo = "psysh"; | ||
rev = "v${finalAttrs.version}"; | ||
hash = "sha256-YuBn4mrgOzGeMGfGcyZySAISmQdv3WRGn91PRozyxdI="; | ||
hash = "sha256-v2UAhxnfnVwA05sxcqMU5vmQcwlBcc901PYJqYf+pCw="; | ||
}; | ||
|
||
composerLock = ./composer.lock; | ||
vendorHash = "sha256-FZFeO7UiVssxTf0JX6wdjrAE+jucYnfQJA1eOng39lQ="; | ||
composerLock = fetchurl { | ||
name = "composer.lock"; | ||
url = "https://github.com/bobthecow/psysh/releases/download/v${finalAttrs.version}/composer-v${finalAttrs.version}.lock"; | ||
hash = "sha256-ur6mzla3uXeFL6aEHAPdpxGdvcgzOgTLW/CKPbNqeCg="; | ||
}; | ||
|
||
composerRepository = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, this is confusing. I would expect this attribute to be passed the result of If you apply the suggested change to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I'm not yet at ease with this.... I will do the change. |
||
preBuild = '' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, maybe we should use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are mentioning it in the commit message. |
||
setComposeRootVersion | ||
composer config platform.php 7.4 | ||
composer require --no-update symfony/polyfill-iconv symfony/polyfill-mbstring | ||
composer require --no-update --dev roave/security-advisories:dev-latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, this is not reproducible, is it? The hash would change over time since the lockfile is included in the output. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, this is fully reproducible actually, tested with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if |
||
composer update --no-interaction --no-progress --prefer-stable --no-dev --classmap-authoritative --prefer-dist --lock | ||
''; | ||
}; | ||
|
||
vendorHash = "sha256-vlEbehxy6xi2qLKG32fV0OJVSphWjqKUVHbWOhoWjoI="; | ||
|
||
meta = { | ||
changelog = "https://github.com/bobthecow/psysh/releases/tag/v${finalAttrs.version}"; | ||
|
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.
I would use
previousAttrs.composerRepository or phpDrv.mkComposerRepository …
. This looks more likecomposerRepositoryArgs
and having different behaviour when passing it tobuildComposerProject
and tooverrideAttrs
would be confusing.