mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
pre-commit/check-merge-conflicts-2: fix use outside dev shell
Note that this is just a script that is meant to run outside a derivation (but also can be called by a derivation builder). `touch $out` does not belong in it. `touch $out` worked accidentally in the derivation-based check, and also in the dev shell, but if pre-commit is invoked without the dev shell it would fail.
This commit is contained in:
parent
fc83c6ccb3
commit
73060b4972
1 changed files with 0 additions and 1 deletions
|
@ -35,7 +35,6 @@
|
||||||
echo "ERROR: found merge/patch conflicts in files"
|
echo "ERROR: found merge/patch conflicts in files"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
touch $out
|
|
||||||
''}";
|
''}";
|
||||||
};
|
};
|
||||||
nixfmt-rfc-style = {
|
nixfmt-rfc-style = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue