Skip to content

Instantly share code, notes, and snippets.

@JakubKoralewski
Created November 5, 2024 11:01
Show Gist options
  • Save JakubKoralewski/e03f9f812f1a35870546837a6b4dba81 to your computer and use it in GitHub Desktop.
Save JakubKoralewski/e03f9f812f1a35870546837a6b4dba81 to your computer and use it in GitHub Desktop.
devbox-collision-repro
--extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure profile install --profile /Users/jakubkoralewski/Projects/devbox-collision-repr/.devbox/nix/profile/default --offline --impure --priority 7 /nix/store/6qsqma7ywrlcppjbvbp518fy8fhkq551-kotlin-1.9.10
unmatched
error: collision between '/nix/store/6qsqma7ywrlcppjbvbp518fy8fhkq551-kotlin-1.9.10/license' and non-directory '/nix/store/kr4332sbls2lb7ccggwa8538q6ggpvbp-emulator-35.3.7/LICENSE'
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.4/.schema/devbox.schema.json",
"packages": [
"github:tadfisher/android-nixpkgs#emulator",
"kotlin"
]
}
#!/bin/bash
set -x
problematic_args="--extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure profile install --profile /Users/jakubkoralewski/Projects/webhookify/.devbox/nix/profile/default --offline --impure --priority 13 /nix/store/6qsqma7ywrlcppjbvbp518fy8fhkq551-kotlin-1.9.10"
if [ "$*" == "$problematic_args" ]; then
echo "$*" > args
echo "matched" >> args
echo "nix '$@'" >&2
/nix/store/1n95r340s7p3vdwqh7m94q0a42crahqq-nix-2.24.9/bin/nix.bkup --verbose "$@" > >(cat) 2>> args
else
echo "$*" > args
echo unmatched >> args
echo "nix '$@'" >&2
/nix/store/1n95r340s7p3vdwqh7m94q0a42crahqq-nix-2.24.9/bin/nix.bkup "$@" > >(cat) 2>> args
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment