Merge pull request 'sops: unbreak edit flags' (#860) from Mic92-target_host into main
All checks were successful
checks-impure / test (push) Successful in 1m55s
checks / test (push) Successful in 2m43s

This commit is contained in:
clan-bot 2024-02-20 10:18:17 +00:00
commit eb8d5167e7

View File

@ -144,7 +144,9 @@ def encrypt_file(
args = ["sops", "--config", str(manifest)]
args.extend([str(secret_path)])
cmd = nix_shell(["nixpkgs#sops"], args)
p = run(cmd, log=Log.BOTH, check=False)
# Don't use our `run` here, because it breaks editor integration.
# We never need this in our UI.
p = subprocess.run(cmd, check=False)
# returns 200 if the file is changed
if p.returncode != 0 and p.returncode != 200:
raise ClanError(