-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: properly raise error if macOS codesign
- ing fails
#1479
Conversation
codesign
- ing fails
Oh wowwa! Is this implementation? https://github.com/thefloweringash/sigtool ? Another way to fix this, and it's where I started before I went down this path, was to rather pass entitlements from the yaml all the way down explicitly. I have a branch where I was working on that. It's unfortunate because it makes rattler-build more aware of details done by lower level build systems but it would work for sigtool and codesign since they both seem to take an explicit plist for entitlements. |
@zbowling do you happen to know if Apple's |
@wolfv --preserve-metadata= has been supported since 10.9 at least so 12+ years at least. |
confirming this works for me, and if I force it to use sigtool with the unsupported arg, I get the expected signing failure:
|
@minrk - just to double check - you manually moved |
Almost. I didn't modify the system, but I disabled the |
@zbowling unfortunately, conda-forge ships and uses
sigtool
which advertises itself ascodesign
as well, but does not support these extra options.My current idea is to:
/usr/bin/codesign
is the codesignUnfortunately neither
sigtool "codesign"
norcodesign
have a--version
that we could use easily.Their
--help
outputs do look differnet though, so we could also use that as indicator.Or we could first try with the extra args, and if it fails, fall back ...
Happy to hear other thoughts. Also pinging @minrk who uncovered all of this.