Skip to content

mac: codesigning errors not caught/reported #1478

Closed
@minrk

Description

@minrk

If codesigning fails on mac with an exit code, this error is ignored, apparently because SystemTools.call doesn't throw an error on exit codes.

this code appears to be meant to catch errors, but it seems to only catches things like "command not found", not nonzero exit codes (available as output.status)

The underlying cause of the error was the fact that conda-forge-distributed sigtool doesn't support the --preserve-metadata=entitlements,requirements argument, causing all codesign calls to fail with:

The following argument was not expected: --preserve-metadata=entitlements,requirements

So two things:

  1. catch and report failures in codesign
  2. (possibly?) support conda codesign, which means losing the --preserve-metadata arg, or checking for its support

Originally found in #1477 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions