!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

78 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
19 May 2023
@jtojnar:matrix.orgJan Tojnardo you mean master or tag?14:55:54
@drupol:matrix.orgPoltag14:57:40
@jtojnar:matrix.orgJan Tojnar trying to find out why it takes ages locally while (only) 10 minutes locally, it looks like it does not do shallow cloning even with shallow = true https://github.com/fossar/composition-c4/pull/3 14:58:48
@drupol:matrix.orgPolYes it's super slow 15:35:57
@drupol:matrix.orgPolEspecially when cloning PHPStan15:36:02
@jtojnar:matrix.orgJan Tojnarthat's because PHPStan is abusing git, storing binary phars there, the repo has ~1.3 GB15:42:22
@jtojnar:matrix.orgJan Tojnar and we cannot really use shallow fetching since that would not work with revs that are not refs (e.g. the deployer) 15:43:37
@jtojnar:matrix.orgJan TojnarI guess the best bet would be an iterative deepening search15:44:18
@tgerbet:matrix.orgtgerbetMaybe use and unpack the dist tarballs when they are available and fallback to git only when they are not? It could help with shenanigans like this one without going too deep in git/SCM stuff15:54:24
@jtojnar:matrix.orgJan Tojnar the issue with dist tarballs is that they lack some files (IIRC some projects were excluding lockfiles in .gitattibutes) 15:58:11
@jtojnar:matrix.orgJan Tojnaractually, does the repo plug-in fetch source tarballs?15:59:01
@jtojnar:matrix.orgJan Tojnar * Pol: actually, does the repo plug-in store source or dist tarballs? 15:59:26
@tgerbet:matrix.orgtgerbetLockfiles should not be needed in the dist tarballs, only the top level needs it and it is fetched via the usual fetchFromGithub or similar16:06:55
@jtojnar:matrix.orgJan Tojnarhmm, maybe I misremembered then16:11:53
@jtojnar:matrix.orgJan Tojnarbut IIRC we switched to source tarballs for some reason16:12:11
@jtojnar:matrix.orgJan Tojnarmaybe it was missing tests?16:12:19
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
Pol: actually, does the repo plug-in store source or dist tarballs?
src
16:14:12
@tgerbet:matrix.orgtgerbetYeah tests in the dependencies might be missing but I'm not sure it's really an issue because you also do not want to install the dev deps of the dependencies16:14:39
@tgerbet:matrix.orgtgerbetSo tests of your dependencies are likely to fail16:15:12
@drupol:matrix.orgPol#goHangHimself16:15:35
@jtojnar:matrix.orgJan Tojnar Pol: looks like the relative paths do not work 🙈
see nix build -L --keep-failed --no-write-lock-file ./tests#non-head-rev in https://github.com/fossar/composition-c4/pull/3
20:27:22
@drupol:matrix.orgPolArgh :S20:27:53
@drupol:matrix.orgPolWhat are we going to do with this thing?20:28:06
@jtojnar:matrix.orgJan TojnarI am leaning towards patching composer20:28:34
@jtojnar:matrix.orgJan Tojnarhttps://github.com/composer/composer/blob/6111ff5cda367d345bf2cf99b8ca95b56fc7459e/src/Composer/Downloader/PathDownloader.php#L4620:28:35
@drupol:matrix.orgPolChecking20:29:32
@drupol:matrix.orgPolDo you think this would fix everything?20:29:52
@jtojnar:matrix.orgJan Tojnarnot everything but at least this thing20:30:06
@drupol:matrix.orgPolmmh mmh20:30:29
@drupol:matrix.orgPolOk20:30:31

Show newer messages


Back to Room ListRoom Version: 6