fix: php: composer-lock path source

This commit is contained in:
Martin Toman 2022-09-17 09:59:49 -07:00
parent 26a0088b9d
commit a9d1f074a2

View File

@ -142,7 +142,7 @@ in {
version = composerJson.version or "unknown"; version = composerJson.version or "unknown";
source = { source = {
type = "path"; type = "path";
path = projectSource; path = rootSource;
}; };
require = require =
(l.optionalAttrs (!noDev) (composerJson.require-dev or {})) (l.optionalAttrs (!noDev) (composerJson.require-dev or {}))
@ -281,6 +281,8 @@ in {
if rawObj.source.type == "path" if rawObj.source.type == "path"
then { then {
inherit (rawObj.source) type path; inherit (rawObj.source) type path;
rootName = null;
rootVersion = null;
} }
else { else {
inherit (rawObj.source) type url; inherit (rawObj.source) type url;