Skip to content

fetchPnpmDeps: fetcherVersion 3 hash is not consistent on github actions runners #484013

Description

@diogotcorreia

Nixpkgs version

  • Stable (25.11)

Describe the bug

I have a custom package that uses pnpm. When building locally (Nix 2.31.2), everything works fine.
However, when building on GitHub Actions, the hash for pnpmDeps frequently has a mismatch with the expected one. Sometimes retrying the run fixes the problem, but not always. Interestingly, the hash it gets is not always the same:

https://github.com/diogotcorreia/dotfiles/actions/runs/21357465859/job/61469393488?pr=111

error: hash mismatch in fixed-output derivation '/nix/store/q745430xvhjpy9y4bbs2p7p8w0nhy61j-book-metadata-api-pnpm-deps.drv':
         specified: sha256-isco9zsgbzfG+nHvEXNiGoRaDxeRhIYzmrNsrw9oyec=
            got:    sha256-1OeZzKfzzzabCXI2nsKp1SRFz4rzEFuDb6y6vP4r6O4=

https://github.com/diogotcorreia/dotfiles/actions/runs/21357465859/job/61470625836?pr=111

error: hash mismatch in fixed-output derivation '/nix/store/q745430xvhjpy9y4bbs2p7p8w0nhy61j-book-metadata-api-pnpm-deps.drv':
         specified: sha256-isco9zsgbzfG+nHvEXNiGoRaDxeRhIYzmrNsrw9oyec=
            got:    sha256-wXLu8I50lYzJKvnZn/fS+5+prVUYDszTvBGBwPAXRUw=

Both of these runs appear to be using Nix 2.33.0.
These actions are run against commit diogotcorreia/dotfiles@7766271


Note: It also doesn't appear to be isolated to that specific package. While packaging discord-nordic, the same thing has happened:

https://github.com/diogotcorreia/dotfiles/actions/runs/21335933059/job/61407831799 (commit diogotcorreia/dotfiles@e0c05f5)

error: hash mismatch in fixed-output derivation '/nix/store/z4wdabmbncnkmrw1i0rgfdcf1ryg7zw4-discord-nordic-pnpm-deps.drv':
         specified: sha256-oCdJNX/bft8OFNw+KbizfsDgY03iTcISEjqshJNcZWQ=
            got:    sha256-RAHLq+MhvTbofoPqWGBOAM/vhk1+7zlfldo42Spzi/k=

Re-running the build again succeeded.

Steps to reproduce

I'm not sure how exactly to reproduce this, since it doesn't appear to happen on my machine.
My dotfiles contain a flake, so that part should be easy to reproduce, by running nix build .#book-metadata-api.pnpmDeps -L.

I'll update this section if I find anything else.

Expected behaviour

The hash should always match

Screenshots

No response

Relevant log output

Additional context

I'll be happy to help with debugging, just let me know what you need from my side.

Relates to: #469950

System metadata

Unfortunately can't run this on GitHub Actions

Notify maintainers

@Scrumplex @gepbird


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    on Jan 26, 2026
  2. changed the title [-]fetchPnpmDeps: fetcherVersion 3 hash is not consistent on github action runners[/-] [+]fetchPnpmDeps: fetcherVersion 3 hash is not consistent on github actions runners[/+] on Jan 26, 2026
  3. gepbird commented on Jan 26, 2026

    @gepbird
    Contributor

    Thanks for the report! I'll try to reproduce it later when I'll have more time.

    To debug GHA, I found the owenthereal/action-upterm@v1 action useful that opens an SSH session on the runner's machine where you can execute commands. Can you check how does the book-metadata-api.pnpmDeps artifact look like on the runner, how does it differ from the one that you build on your machine? Maybe getting the system metadata there could be also helpful.

  4. diogotcorreia commented on Jan 27, 2026

    @diogotcorreia
    MemberAuthor

    @gepbird I tried building the packages in GHA just by themselves and it succeeded, so my guess now is that it happens when the system is under stress. Will keep trying to reproduce.

    Regardless, do you know of a way to get the contents of $out right before the build fails due to hash mismatch? I know --keep-failed exists, but that doesn't seem to leave $out anywhere.

    And:

    runner@runnervmymu0l:~/work/dotfiles/dotfiles$ nix-shell -p nix-info --run "nix-info -m"
    error:
           … from call site
             at «string»:1:1:
                1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
                 | ^
    
           … while calling anonymous lambda
             at «string»:1:1:
                1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
                 | ^
    
           … while calling the 'import' builtin
             at «string»:1:18:
                1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
                 |                  ^
    
           … while realising the context of a path
    
           … while calling the 'findFile' builtin
             at «string»:1:25:
                1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
                 |                         ^
    
           error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
    
    runner@runnervmymu0l:~/work/dotfiles/dotfiles$ nix --version
    nix (Nix) 2.33.0
    runner@runnervmymu0l:~/work/dotfiles/dotfiles$ uname -a
    Linux runnervmymu0l 6.11.0-1018-azure #18~24.04.1-Ubuntu SMP Sat Jun 28 04:46:03 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
    
  5. gepbird commented on Jan 28, 2026

    @gepbird
    Contributor

    @gepbird I tried building the packages in GHA just by themselves and it succeeded, so my guess now is that it happens when the system is under stress. Will keep trying to reproduce.

    You could try running the stress CLI tool to simulate max CPU usage for example.

    Regardless, do you know of a way to get the contents of $out right before the build fails due to hash mismatch? I know --keep-failed exists, but that doesn't seem to leave $out anywhere.

    Maybe there's a better way for what you're asking specifically, but adding breakpointHook to nativeBuildInputs is nice for debugging. Similarly to how the owenthereal/action-upterm action gives you SSH access and a shell into the runner, breakpointHook gives you a shell inside the Nix build sandbox. You have access to variables like $out for the final result, and you get dropped into IIRC /build which is where $src is usually unpacked and most commands usually act on the files inside this directory. You can inspect the files, but if you need additional tools you should add them to nativeBuildInputs for the derivation. For fetchPnpmDeps you probably want to add this here:

    nativeBuildInputs = [
    cacert
    jq
    moreutils
    pnpm # from args
    yq
    zstd
    ]
    ++ args.nativeBuildInputs or [ ];
    .

    runner@runnervmymu0l:~/work/dotfiles/dotfiles$ nix-shell -p nix-info --run "nix-info -m"
    error:

    That's a bit more finicky, for that to work I think you need to add a nixpkgs channel with nix-channel, but I haven't used that in a while. You should get the same result with nix run nixpkgs#nix-info -- -m.

  6. gepbird commented on Jan 28, 2026

    @gepbird
    Contributor

    I'm currently trying to reproduce it.

    These actions are run against commit diogotcorreia/dotfiles@7766271

    I can't check this out locally after cloning the repo, I'll try diogotcorreia/dotfiles@e0c05f5 instead with discord-nordis package as you said this is affected too.

    discord-nordic was built on GHA:

    In an upterm session I also tried nix run nixpkgs#stress -- --cpu 4 then rebuilding discord-nordic.pnpmDeps a few times, I couldn't reproduce the issue. In case you want to get the same environment as me, I was doing this on https://github.com/gepbird/diogotcorreia-dotfiles/tree/pnpm-repro-attempt.

    Maybe it's worth trying out older fetcherVersions, but I don't think that's related.

    Let me know if you can find a consistent reproducer.

    (I wonder if it was network related, for example the npm registry was silently misbehaving?)

  7. diogotcorreia commented on Jan 29, 2026

    @diogotcorreia
    MemberAuthor

    Thank you for your efforts!

    Maybe there's a better way for what you're asking specifically, but adding breakpointHook to nativeBuildInputs is nice for debugging.

    Unfortunately this doesn't seem to work for hash mismatches, only for build failures.

    You should get the same result with nix run nixpkgs#nix-info -- -m.

    runner@runnervmymu0l$ nix run nixpkgs#nix-info -- -m
     - system: `"x86_64-linux"`
     - host os: `Linux 6.11.0-1018-azure, Ubuntu, 24.04.3 LTS (Noble Numbat), nobuild`
     - multi-user?: `no`
     - sandbox: `yes`
     - version: `nix-env (Nix) 2.33.0`
     - nixpkgs: `not found`
    

    I can't check this out locally after cloning the repo, I'll try diogotcorreia/dotfiles@e0c05f5 instead with discord-nordis package as you said this is affected too.

    Yeah, the commit I mentioned was from a PR, so it isn't available anymore 😅 The equivalent commit is diogotcorreia/dotfiles@c5e3bfa

    (I wonder if it was network related, for example the npm registry was silently misbehaving?)

    That would be concerning, but certainly a possibility.


    I have also tried to reproduce it again, this time by running the full host rebuild but setting the pnpmDeps hash to "", and the build failed with an unexpected hash: https://github.com/diogotcorreia/dotfiles/actions/runs/21461507746/job/61814834469
    Weirdly enough, I couldn't reproduce this when disabling the cache, so that might be involved.
    With the debug I added, the failure created an artifact with the (incorrectly) built pnpmDeps package: https://github.com/diogotcorreia/dotfiles/actions/runs/21461507746/artifacts/5297028020

    First thing I could notice is that the checksum of pnpm-store.tar.zst is different (obviously):

    0c7c8992bfe973f7d1010fb172f02c5994fa6d1cee3fd46aeafe47b43d126667  pnpm-store.tar.zst (expected)
    0af4a5fb4c9f6b48f90660d11bf0bf67a0fb2c6805556ae26a8a4799b16b78ef  pnpm-store.tar.zst (from gha)
    

    Using diff -r, it seems like a bunch of index dirs are missing (/tmp/pnpm-store is the expected store, ./Unpack-9914 is from GHA):

    diff -r /tmp/pnpm-store/ ./Unpack-9914/
    Only in /tmp/pnpm-store/v10/index: 85
    Only in /tmp/pnpm-store/v10/index: 89
    Only in /tmp/pnpm-store/v10/index: 8c
    Only in /tmp/pnpm-store/v10/index: 8d
    Only in /tmp/pnpm-store/v10/index: 95
    Only in /tmp/pnpm-store/v10/index: 98
    Only in /tmp/pnpm-store/v10/index: 9a
    Only in /tmp/pnpm-store/v10/index: 9b
    Only in /tmp/pnpm-store/v10/index: 9e
    Only in /tmp/pnpm-store/v10/index: 9f
    Only in /tmp/pnpm-store/v10/index: a4
    Only in /tmp/pnpm-store/v10/index: ab
    Only in /tmp/pnpm-store/v10/index: ac
    Only in /tmp/pnpm-store/v10/index: ad
    Only in /tmp/pnpm-store/v10/index: b3
    Only in /tmp/pnpm-store/v10/index: b8
    Only in /tmp/pnpm-store/v10/index: b9
    Only in /tmp/pnpm-store/v10/index: ba
    Only in /tmp/pnpm-store/v10/index: bb
    Only in /tmp/pnpm-store/v10/index: bf
    Only in /tmp/pnpm-store/v10/index: c3
    Only in /tmp/pnpm-store/v10/index: c4
    Only in /tmp/pnpm-store/v10/index: c8
    Only in /tmp/pnpm-store/v10/index: cc
    Only in /tmp/pnpm-store/v10/index: d1
    Only in /tmp/pnpm-store/v10/index: d3
    Only in /tmp/pnpm-store/v10/index: d7
    Only in /tmp/pnpm-store/v10/index: da
    Only in /tmp/pnpm-store/v10/index: dc
    Only in /tmp/pnpm-store/v10/index: dd
    Only in /tmp/pnpm-store/v10/index: e2
    Only in /tmp/pnpm-store/v10/index: ea
    Only in /tmp/pnpm-store/v10/index: f1
    Only in /tmp/pnpm-store/v10/index: f2
    Only in /tmp/pnpm-store/v10/index: f6
    Only in /tmp/pnpm-store/v10/index: f9
    Only in /tmp/pnpm-store/v10/index: ff
    

    Weirdly enough, these appear to be a subset of the empty index directories:

    $ find . -type d -empty | sort
    ./02
    ./08
    ./0c
    ./0d
    ./10
    ./12
    ./16
    ./1b
    ./1f
    ./20
    ./21
    ./23
    ./24
    ./2a
    ./2c
    ./2f
    ./33
    ./37
    ./3b
    ./3c
    ./3d
    ./3e
    ./40
    ./41
    ./50
    ./51
    ./53
    ./55
    ./56
    ./57
    ./5c
    ./5e
    ./5f
    ./71
    ./72
    ./73
    ./76
    ./77
    ./79
    ./7d
    ./80
    ./81
    ./85
    ./89
    ./8c
    ./8d
    ./95
    ./98
    ./9a
    ./9b
    ./9e
    ./9f
    ./a4
    ./ab
    ./ac
    ./ad
    ./b3
    ./b8
    ./b9
    ./ba
    ./bb
    ./bf
    ./c3
    ./c4
    ./c8
    ./cc
    ./d1
    ./d3
    ./d7
    ./da
    ./dc
    ./dd
    ./e2
    ./ea
    ./f1
    ./f2
    ./f6
    ./f9
    ./ff
    

    I'm really not sure what is going on here 😅 But I can investigate further tomorrow now that we have a bit more information.

  8. diogotcorreia commented on Jan 29, 2026

    @diogotcorreia
    MemberAuthor

    More insights:

    I'll look a bit further into the btrfs configuration and see if anything odd stands out.

  9. diogotcorreia commented on Jan 29, 2026

    @diogotcorreia
    MemberAuthor

    I had no luck with btrfs, so I started looking into pnpm and I think I found some sort of race condition (?)

    So, pnpm (v10.28.0) creates all the directories here: https://github.com/pnpm/pnpm/blob/v10.28.0/worker/src/start.ts#L197-L215

    However, if any of the fs.mkdirSync calls fail, it stops creating the remaining directories as well. To test this theory, I patched pnpm (btw, why are we getting it from npm instead of building from source? ugh, seems like you'd need pnpm to build pnpm 🙃) and added some debug logs, which gave me this log on GHA:

    HANDLING MESSAGE: init-store
    HANDLING MESSAGE: readPkgFromCafs
    HANDLING MESSAGE: readPkgFromCafs
    �[1AProgress: resolved �[96m293�[39m, reused �[96m0�[39m, downloaded �[96m0�[39m, added �[96m0�[39m
    HANDLING MESSAGE: readPkgFromCafs
    HANDLING MESSAGE: readPkgFromCafs
    <repeated many times>
    HANDLING MESSAGE: readPkgFromCafs
    HANDLING MESSAGE: readPkgFromCafs
    HANDLING MESSAGE: extract
    �[1AProgress: resolved �[96m293�[39m, reused �[96m0�[39m, downloaded �[96m1�[39m, added �[96m0�[39m
    HANDLING MESSAGE: extract
    FINISH HANDLING MESSAGE: extract
    FINISH HANDLING MESSAGE: extract
    HANDLING MESSAGE: extract
    CREATING DIR /build/tmp.fnIj9xZOAv/v10/files/00
    CREATING DIR /build/tmp.fnIj9xZOAv/v10/files/01
    CREATING DIR /build/tmp.fnIj9xZOAv/v10/files/02
    <truncated>
    CREATING DIR /build/tmp.fnIj9xZOAv/v10/files/dc
    CREATING DIR /build/tmp.fnIj9xZOAv/v10/files/dd
    CREATING DIR /build/tmp.fnIj9xZOAv/v10/files/de
    error creating dir Error: EEXIST: file already exists, mkdir '/build/tmp.fnIj9xZOAv/v10/files/df'
        at Object.mkdirSync (node:fs:1363:26)
        at initStore (/nix/store/isxzyd9rcsz6ik4074apl5x6dpjbsfxn-pnpm-10.28.0/libexec/pnpm/dist/worker.js:9888:28)
        at MessagePort.handleMessage (/nix/store/isxzyd9rcsz6ik4074apl5x6dpjbsfxn-pnpm-10.28.0/libexec/pnpm/dist/worker.js:9772:53)
        at [nodejs.internal.kHybridDispatch] (node:internal/event_target:845:20)
        at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) {
      errno: -17,
      code: 'EEXIST',
      syscall: 'mkdir',
      path: '/build/tmp.fnIj9xZOAv/v10/files/df'
    }
    FINISH HANDLING MESSAGE: init-store
    

    This appears to happen because another part of the program has already started adding things into the files/index directories before initStore finishes (perhaps due to high I/O load?). While testing this locally, init-store is finished before any other message is handled, so the hash of the derivation is correct.

    An easy fix in nixpkgs would be to create all the missing directories before creating the tarball, but perhaps this should also be reported upstream? What do you think?

  10. gepbird commented on Jan 30, 2026

    @gepbird
    Contributor

    Thanks for all of your research, I haven't dug much deeper into this than my last comment, some things that come to my mind:

    This appears to happen because another part of the program has already started adding things into the files/index directories before initStore finishes (perhaps due to high I/O load?). While testing this locally, init-store is finished before any other message is handled, so the hash of the derivation is correct.

    Maybe running stress --io (or run it with --hdd/--hdd-bytes?) makes it more reproducible, even locally. Using a slower IO device could also help, you can specify another nix store, for example nix build --store /path/to/slow/io/dir .#book-metadata-api.pnpmDeps. I may try this later on my ancient HDD that even requires a power cable and currently it's just collecting dust :D

    An easy fix in nixpkgs would be to create all the missing directories before creating the tarball, but perhaps this should also be reported upstream? What do you think?

    What do you mean by this exactly? If I understand correctly, the pnpm commands create those directories, how can we know which directories to create in advance? If we create aa, ab, ..., ff, seems like it can waste a small amount of storage, and would require introducing a fetcherVersion = 4.

    From the above error it could be a race condition, maybe thread 1 tries to stat a path, which results in not found, thread 2 stats with not found, thread 1 mkdirs which is success, thread 2 mkdirs which fails. In this case we should probably report it to upstream.

  11. diogotcorreia commented on Jan 30, 2026

    @diogotcorreia
    MemberAuthor

    Maybe running stress --io (or run it with --hdd/--hdd-bytes?) makes it more reproducible, even locally. Using a slower IO device could also help, you can specify another nix store, for example nix build --store /path/to/slow/io/dir .#book-metadata-api.pnpmDeps. I may try this later on my ancient HDD that even requires a power cable and currently it's just collecting dust :D

    I can try checking if there is a way to simulate slow I/O on Linux. But I did try stress with --io and --hdd/--hdd-bytes in the GHA VM yesterday without success.
    Another option would be to purposely add sleeps to the pnpm code to demonstrate the race condition, but I'd prefer if it were reproducible without patching pnpm.

    What do you mean by this exactly? If I understand correctly, the pnpm commands create those directories, how can we know which directories to create in advance? If we create aa, ab, ..., ff, seems like it can waste a small amount of storage, and would require introducing a fetcherVersion = 4.

    No, pnpm always (well, when it doesn't encounter this race condition) creates the full aa, .., ff, regardless if the directories are going to be empty or not. I think it is safe to assume all existing pnpmHashes in nixpkgs have the correct structure already, so we wouldn't need a new fetcherVersion as it would be a no-op in all existing cases.
    For example, this is a possible fix on our side:

    hexChars=(0 1 2 3 4 5 6 7 8 9 a b c d e f)
    
    for subDir in files index; do
      for hex1 in "${hexChars[@]}"; do
        for hex2 in "${hexChars[@]}"; do
          mkdir -p "$storeDir/$subDir/$hex1$hex2"
        done
      done
    done

    I'll hold off creating a PR for now, given we can probably get a fix upstream instead.

    From the above error it could be a race condition, maybe thread 1 tries to stat a path, which results in not found, thread 2 stats with not found, thread 1 mkdirs which is success, thread 2 mkdirs which fails. In this case we should probably report it to upstream.

    I don't think that's the problem here, the code is designed to just blindly mkdir, it doesn't check if the dir already exists, just catches/ignores the error, which exits from the loop before all dirs are created.
    I'll report it upstream then! A PR there shouldn't be too difficult.

  12. diogotcorreia commented on Jan 30, 2026

    @diogotcorreia
    MemberAuthor

    I have managed to create a setup that reproduces this on my laptop:

    #!/usr/bin/env bash
    
    SUDO="sudo"
    # If 1 does not work to reproduce the problem, try setting it to 10 or a number in between.
    DELAY="1"
    
    img="$(mktemp)"
    echo "Creating image on $img"
    
    # Create 1GB img file
    dd if=/dev/zero of="$img" bs=1M count=1000
    device="$($SUDO losetup --show --find "$img")"
    echo "Mounted to $device"
    
    $SUDO mkfs.ext4 "$device"
    
    blocksize="$($SUDO blockdev --getsize "$device")"
    echo "Blocksize: $blocksize"
    
    echo "Creating /dev/mapper/dm-slow..."
    echo "0 $blocksize delay $device 0 $DELAY" | $SUDO dmsetup create dm-slow
    
    storeDir="$(mktemp -d)"
    mntDir="$storeDir/nix/var/nix/builds"
    
    mkdir -p "$mntDir"
    $SUDO mount -o dirsync /dev/mapper/dm-slow "$mntDir"
    $SUDO chown "$USER" "$mntDir"
    echo "Mounted /dev/mapper/dm-slow at $mntDir"
    
    echo
    echo
    echo "You can now run:"
    echo "nix build --store $storeDir <installables>"
    
    echo
    echo
    echo "To undo device setup, run the following command:"
    echo "$SUDO umount $mntDir ; $SUDO dmsetup remove dm-slow ; $SUDO losetup -d $device ; rmdir $storeDir ; rm $img"

    (courtesy of https://serverfault.com/questions/523509/linux-how-to-simulate-hard-disk-latency-i-want-to-increase-iowait-value-withou)

    It uses dm-mapper to create an artificial delay of writes/reads, and, more importantly, mounts with -o dirsync to delay calls to mkdir.

    Make sure to run it without root, unless you are running nix with root as well.

    There are more detailed instructions in the upstream issue: pnpm/pnpm#10535

    Let me know if this works for you as well.

  13. diogotcorreia commented on Jan 31, 2026

    @diogotcorreia
    MemberAuthor

    The fix upstream has been merged, let's hope it gets backported to pnpm v10 soon: pnpm/pnpm#10536

  14. gepbird commented on Jan 31, 2026

    @gepbird
    Contributor

    Huge thanks for reaching out to them and fixing it! Yea, let's hope it will be in the next v10 release :)

    I don't want to force extra work on you, only if you are interested in improving pnpm inside nixpkgs and have the time.
    pnpm/pnpm#5315 is blocking us from using pnpm deploy. I admit I haven't done a lot of research on it, but if my understanding is correct it should improve packaging by a lot.
    Currently some Nix packages built with pnpm ship many megabytes or even gigabytes of node_modules which are mostly unnecessary. Not shipping node_modules will make some/most packages not work at all, because there are references to that in the built e.g. dist folder.
    pnpm deploy should reduce this and we could get rid of pnpm prune and hacky manual cleanups that try to remove some of the unnecessary files.

    # TODO: use deploy after resolved https://github.com/pnpm/pnpm/issues/5315
    pnpm build --filter=n8n
    runHook postBuild
    '';
    preInstall = ''
    echo "Removing non-deterministic and unnecessary files"
    find -type d -name .turbo -exec rm -rf {} +
    rm node_modules/.modules.yaml
    rm packages/nodes-base/dist/types/nodes.json
    CI=true pnpm --ignore-scripts prune --prod
    find -type f \( -name "*.ts" -o -name "*.map" \) -exec rm -rf {} +
    rm -rf node_modules/.pnpm/{typescript*,prettier*}
    shopt -s globstar
    # https://github.com/pnpm/pnpm/issues/3645
    find node_modules packages/**/node_modules -xtype l -delete
    echo "Removed non-deterministic and unnecessary files"
    '';

  15. diogotcorreia commented on Feb 18, 2026

    @diogotcorreia
    MemberAuthor

    @gepbird Thanks for letting me know. I still haven't had the time, but if I do I'll be happy to look into it.


    The fix for this issue has been released in 10.29.0 a few weeks ago.
    pnpm/pnpm@v10.28.2...v10.29.0

    Will be fixed in nixpkgs once #488068 is merged.

  16. linked a pull request that will close this issuepnpm_10: 10.28.0 -> 10.29.2 #494320on Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions