doc: add warning about composer bug
This commit is contained in:
@@ -214,6 +214,12 @@ code, while others choose not to.
|
|||||||
|
|
||||||
In Nix, there are multiple approaches to building a Composer-based project.
|
In Nix, there are multiple approaches to building a Composer-based project.
|
||||||
|
|
||||||
|
::: {.warning}
|
||||||
|
`buildComposerProject2` has a [known bug](https://github.com/NixOS/nixpkgs/issues/451395)
|
||||||
|
where the `vendorHash` changes every a Composer release happens that changes the
|
||||||
|
`autoload.php` or vendored composer code.
|
||||||
|
:::
|
||||||
|
|
||||||
One such method is the `php.buildComposerProject2` helper function, which serves
|
One such method is the `php.buildComposerProject2` helper function, which serves
|
||||||
as a wrapper around `mkDerivation`.
|
as a wrapper around `mkDerivation`.
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,13 @@
|
|||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
/*
|
||||||
|
XXX IMPORTANT
|
||||||
|
|
||||||
|
Make sure to check if the `vendorHash` of `buildComposerProject2` changes when updating!
|
||||||
|
See https://github.com/NixOS/nixpkgs/issues/451395
|
||||||
|
*/
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
pname = "composer";
|
pname = "composer";
|
||||||
version = "2.8.12";
|
version = "2.8.12";
|
||||||
|
|||||||
Reference in New Issue
Block a user