!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

76 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
7 Apr 2023
@drupol:matrix.orgPolMerci09:57:46
@jtojnar:matrix.orgJan Tojnaralso there is some context in the composition-c4 readme: https://github.com/fossar/composition-c4#what-are-the-limitations10:01:41
@drupol:matrix.orgPolI did this: https://gist.github.com/drupol/22a98547bff80aaf5e9f236b2a4d0ab610:13:56
@drupol:matrix.orgPolBut it's failing and I can't figure out why yet.10:14:23
@drupol:matrix.orgPolimage.png
Download image.png
10:14:27
@drupol:matrix.orgPol Looks like ${vendor} doesn't contain anything in it. 10:14:40
@drupol:matrix.orgPolI'm pretty sure this is something stupid.10:15:16
@drupol:matrix.orgPol Jan Tojnar: Any clue on this ? ^^ 10:16:39
@jtojnar:matrix.orgJan Tojnar Pol: might be a Nix bug, try dontPatchShebangs = true in the vendor 10:19:48
@jtojnar:matrix.orgJan Tojnarthis one, IIRC https://github.com/NixOS/nix/issues/666010:20:49
@drupol:matrix.orgPolit works when I do that... thanks... I don't know how you find it out10:21:04
@jtojnar:matrix.orgJan TojnarI hit this issue in the past, took me a long time to figure out 😿10:21:44
@drupol:matrix.orgPolThanks mate10:22:40
@drupol:matrix.orgPolpushed the changes, now I'm going to wait for CI and see if it fixes the stuff.10:23:26
@drupol:matrix.orgPolDamn, it's still failing, the checksums are different: https://github.com/NixOS/nixpkgs/pull/22512910:25:11
@drupol:matrix.orgPolI can't figure out why.10:25:16
@drupol:matrix.orgPolforget about it, I found the issue !!!10:26:43
@drupol:matrix.orgPolIT WORKS ! :) 10:28:06
@drupol:matrix.orgPolThis is super cool because we can document that and help people package their PHP app !!!10:28:52
@drupol:matrix.orgPol tgerbet, @Shyim ^^ 10:30:12
@jtojnar:matrix.orgJan Tojnar Pol: ideally, we would have a function like rustPlatform.fetchCargoTarball to avoid the boilerplate 10:33:37
@drupol:matrix.orgPolI will work on this very soon :)10:33:54
@tgerbet:matrix.orgtgerbet
In reply to @drupol:matrix.org
tgerbet, @Shyim ^^

Yeah this is not something really new, this is fine for personal/corporate stuff but not so much for nixpkgs:

  • that cannot work with dependencies only using a source repository because that make us dependent on the output of git/svn/mercurial/whatever
  • AFAIK there is no way to tell composer to use only dist tarball, there is a --prefer-dist flag but it will happily switch
10:43:26
@jtojnar:matrix.orgJan Tojnaroh, right source deps are a thing. Maybe we could post-process the output to strip the VCS directories10:51:52
@drupol:matrix.orgPol
In reply to @jtojnar:matrix.org
oh, right source deps are a thing. Maybe we could post-process the output to strip the VCS directories
Where ?
11:10:13
@tgerbet:matrix.orgtgerbet
In reply to @jtojnar:matrix.org
oh, right source deps are a thing. Maybe we could post-process the output to strip the VCS directories
I'm also not sure how Composer behaves with things like Git LFS and submodules. It would also requires dealing with the things the "traditional" fetchers are dealing with like the path to the CA bundle, proxy information...
Even with all of that I'm not sure it is currently possible to tell Composer to use only the dist tarball or the source for package proposing both. If I remember correctly even with --fetch-dist it will try to fallback to to the source if the dist tarball cannot be retrieved for some reasons
11:23:16
@drupol:matrix.orgPolhttps://planttext.com/api/plantuml/png/hP7D2i8m48JlUOg0ju3w0gKKl7YIujNsa3IhHjDisAHetzxK7ugWFVMukxFVC4mHegJO6gTRwHaBL-CuOG3612-tPUKssFeqK-K8FA7k6gECDR5F2i7ta8uc8lMLorH-C_7Cc_V7oc9ppTOgJq8nRYy1tIYMNKIBKWCjFS7Ht3yFuh0u4O2h1u-dhrGM9b3OnKaQWQxv3YEdRzwl30DhjXZ_ZESDmWf87RvwV00011:32:25
@drupol:matrix.orgPolhere's a diagram summarizing the situation with composer.11:32:35
@jtojnar:matrix.orgJan Tojnarugh, that will not be reproducible then, GitHub filters out stuff from the tarballs according to .gitattributes so dist archives will commonly be different from vcs checkout11:33:13
@tgerbet:matrix.orgtgerbetYep and it's something that is often used in the packages to filter out tests in the dist tarballs for example11:34:52

Show newer messages


Back to Room ListRoom Version: 6