Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use codesign -f to replace existing signature
When using dune in macOS + nix, the nix tooling adds a codesigning hook so when dune goes to sign files after substitution there is already an existing signature which fails the build as could be seen in the failure of the promote-only-when-needed test. The failure can be avoided by providing the -f option to codesign which will replace any existing signatures on the file. However, when -f is used and a signature is replaced, codesign prints a message that it is replacing the existing signature. This additional message pollutes dune's output and causes spurious failures of the cram tests on macOS + nix. This secondary negative effect is eliminated by running the codesign tool with output swallowed as long as the tool runs successfully. Fixes #6265 Signed-off-by: Geoff Reedy <geoff@programmer-monk.net>
- Loading branch information