NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.38k stars 14.33k forks source link

Build failure: phpPackages.psysh #337952

Open lucc opened 3 months ago

lucc commented 3 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build nixpkgs#phpPackages.psysh

Build log

error: hash mismatch in fixed-output derivation '/nix/store/qbcxs22v1zhdz2j9bla4yac0qmg92anp-composer.lock.drv':
         specified: sha256-ur6mzla3uXeFL6aEHAPdpxGdvcgzOgTLW/CKPbNqeCg=
            got:    sha256-PQDWShzvTY8yF+OUPVJAV0HMx0/KnA03TDhZUM7ppXw=
error: 1 dependencies of derivation '/nix/store/gdhc1ya9ijnyxbc062mn8h5azdixs2ch-psysh-0.12.4.drv' failed to build

Additional context

Notify maintainers

@aanderse @drupol @Ma27 @piotrkwiecinski @talyz

(these are the explicit maintainers from nix eval nixpkgs/master\#phpPackages.psysh.meta.maintainers --apply 'builtins.map ({github, ... }: github)' because I do not know how to ping the php team. Sorry.)

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.45, NixOS, 24.11 (Vicuna), 24.11.20240814.c3aa7b8`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - nixpkgs: `/nix/store/sfycwi72zfjsspidinx56ajaiffpyh17-source`

Add a :+1: reaction to issues you find important.

lucc commented 2 months ago

I noticed that psysh is also out of date. There are some new versions available so maybe we can just update the derivation to a new version.

https://github.com/bobthecow/psysh/releases

drupol commented 2 months ago

Not until we have fixed the instability with buildComposerProject2.

piotrkwiecinski commented 2 months ago

It's related to use of a new builder introduced in https://github.com/NixOS/nixpkgs/pull/308059. Similar to https://github.com/NixOS/nixpkgs/pull/336145. There is an edge case in composer autoloader logic leading to slightly different file order. Here is some discussion https://github.com/composer/composer/pull/12090 but it's not a proper solution yet.

I hope to spend some time later this week to dig deeper into composer internals.