Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround apple silicon codesigning cache bug
This is a hack to work around a codesigning problem on Apple Silicon where overwriting a binary that has already been executed doesn't cause the corresponding codesign entry in the OS cache to update. Mac then prevents the updated binary from running because the signature doesn't match. Removing the file first clears the cache so that we don't run into "zsh: killed ..." I've updated the magefile so that when we run the install target, the original binaries are removed before we copy. I considered fixing this directly in shx.Copy but lots of people use that and this is a bug in just regular old cp too. So I don't want shx.Copy to do stuff that even cp doesn't. See: * https://stackoverflow.com/questions/67378106/mac-m1-cping-binary-over-another-results-in-crash * https://openradar.appspot.com/FB8914231 Signed-off-by: Carolyn Van Slyck <[email protected]>
- Loading branch information