!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

68 Members
A room for PHP developers running on Nix19 Servers

Load older messages


SenderMessageTime
19 May 2023
@drupol:matrix.org@drupol:matrix.orgChecking20:29:32
@drupol:matrix.org@drupol:matrix.orgDo you think this would fix everything?20:29:52
@jtojnar:matrix.orgJan Tojnarnot everything but at least this thing20:30:06
@drupol:matrix.org@drupol:matrix.orgmmh mmh20:30:29
@drupol:matrix.org@drupol:matrix.orgOk20:30:31
@drupol:matrix.org@drupol:matrix.orgCurious to see how you're going to patch it.20:30:51
@jtojnar:matrix.orgJan TojnarI was thinking resolving the path relative to repository path20:31:03
@jtojnar:matrix.orgJan Tojnarbut thinking about it more, it does not really make much sense since the repository does not have to be a path, does it?20:31:31
@drupol:matrix.org@drupol:matrix.orgThere could be different type of repos indeed20:32:26
@jtojnar:matrix.orgJan TojnarI guess we could do it like napalm does and run http server20:33:38
@drupol:matrix.org@drupol:matrix.orgI have no clue on those things20:33:55
@jtojnar:matrix.orgJan Tojnar Pol: regarding the composer packaging it looks like composer update --lock will require even developer dependencies to be in the repo 21:19:31
@jtojnar:matrix.orgJan Tojnar which makes sense, --no-dev should not produce partial lockfile 21:19:58
@drupol:matrix.org@drupol:matrix.orgMmh mmh 21:20:27
@jtojnar:matrix.orgJan Tojnar so we cannot support includeDev in the fetchComposerDeps function 21:20:35
@jtojnar:matrix.orgJan Tojnarand need to optimize the fetcher instead21:20:44
@drupol:matrix.org@drupol:matrix.orgBut we can do `composer update --lock --no-dev`21:20:52
@jtojnar:matrix.orgJan Tojnarwe can, but it will still look for dev dependencies so that it can lock them21:21:18
@jtojnar:matrix.orgJan Tojnarit just will not install them21:21:31
@jtojnar:matrix.orgJan Tojnar * it just will skip installing them 21:21:44
@drupol:matrix.org@drupol:matrix.orgRight, so, we have to parse lock files and intersect with composer.json.require then ?21:22:21
@jtojnar:matrix.orgJan Tojnar we could have the setup hook patch the sources inside the lockfile, instead of running composer update --lock 21:23:38
@jtojnar:matrix.orgJan Tojnar and rely on the fact that the dev dependencies will not be installed with --no-dev so it would not matter that the path would be non-existent 21:24:19
@jtojnar:matrix.orgJan Tojnaror we could just optimize the fetcher so that downloading dev dependencies is not pain21:25:00
@drupol:matrix.org@drupol:matrix.orgI prefer to optimize the fetcher21:25:21
@drupol:matrix.org@drupol:matrix.orgMaybe we can just skip the package if the package is not in require section.21:27:53
@jtojnar:matrix.orgJan Tojnaractually, maybe just using the dists would be fine for you, then21:27:54
@drupol:matrix.org@drupol:matrix.orgWhat do you mean?21:28:06
@drupol:matrix.org@drupol:matrix.orgHow about making the changes in the composer plugin ?21:28:23
@drupol:matrix.org@drupol:matrix.orgJust added you as a maintainer21:29:25

Show newer messages


Back to Room ListRoom Version: 6