check for breakpoint() function in code

This commit is contained in:
Jörg Thalheim
2023-08-09 10:21:59 +02:00
parent 68905fc233
commit 3d5a37ad03
2 changed files with 5 additions and 1 deletions

View File

@@ -81,7 +81,6 @@ def encrypt_secret(
users_folder(secret.name), sops_users_folder(), key.username, False
)
breakpoint()
encrypt_file(secret / "secret", value, list(sorted(keys)))

View File

@@ -79,6 +79,11 @@ python3.pkgs.buildPythonPackage {
'';
checkPhase = ''
PYTHONPATH= $out/bin/clan --help
if grep --include \*.py -q "breakpoint()" $out; then
echo "breakpoint() found in $out:"
grep --include \*.py -Rn "breakpoint()" $out
exit 1
fi
'';
meta.mainProgram = "clan";
}