deploying a full stack laravel application with react typescript but in the build process i got the follwoing error
yishak-cs
FREEOP

8 months ago

error: collision between /nix/store/rkh77vjs1p54257ws66sqdfq55rpz8kz-pnpm/LICENSE' and /nix/store/rbbaws9k85zah0d77ggsf3hnsd8cavdd-composer-2.8.4/LICENSE'

error: builder for '/nix/store/v53sn1h4pps5sx1qjj7wlysqm2qx6mjs-e24b4c09e963677b1beea49d411cd315a024ad3a-env.drv' failed with exit code 25

✕ [ 4/12] RUN nix-env -if .nixpacks/nixpkgs-e24b4c09e963677b1beea49d411cd315a024ad3a.nix && nix-collect-garbage -d

process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-e24b4c09e963677b1beea49d411cd315a024ad3a.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100

$10 Bounty

1 Replies

idiegea21
HOBBY

8 months ago

Wrap your dependencies with buildEnv and add prefixes to avoid collisions.

In your .nix file (or wherever you're building the environment):

nix

let pkgs = import <nixpkgs> {};

in pkgs.buildEnv {

name = "my-env";

paths = [ pkgs.pnpm pkgs.composer ];

pathsToLink = [ "/bin" ]; # only link bin/ to avoid LICENSE collisio
}


Loading...