Wanted to fix the broken arm64 cross-compilation, but ended up only adding a test to make sure cross-compilation works. The real fix is added to Tooling Control Center's release workflow instead, because it needs to be fixed in the workflow, not in code.
The reason cross-compilation fails is that codesigndoc contains C code in the osxkeychain package, and in this case cross-compilation is not working automatically, we need to add CGO_ENALBED=1 to explicitly enable this behavior.
Wanted to fix the broken
arm64
cross-compilation, but ended up only adding a test to make sure cross-compilation works. The real fix is added toTooling Control Center
's release workflow instead, because it needs to be fixed in the workflow, not in code.The reason cross-compilation fails is that
codesigndoc
contains C code in theosxkeychain
package, and in this case cross-compilation is not working automatically, we need to addCGO_ENALBED=1
to explicitly enable this behavior.