Skip to content
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

codesign binaries on osx-arm64 #257

Merged
merged 3 commits into from Aug 4, 2023
Merged

codesign binaries on osx-arm64 #257

merged 3 commits into from Aug 4, 2023

Conversation

xhochy
Copy link
Collaborator

@xhochy xhochy commented Mar 15, 2023

Fixes #238

Description

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@xhochy xhochy requested a review from a team as a code owner March 15, 2023 21:19
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Mar 15, 2023
@xhochy
Copy link
Collaborator Author

xhochy commented Mar 16, 2023

This has been tested locally but as there is no Apple Silicon Github runner yet, we won't be able to test it in CI.

dbast
dbast previously approved these changes Mar 16, 2023
Comment on lines +81 to +83
subprocess.run(
["/usr/bin/codesign", "-s", "-", "-f", path], capture_output=True
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the output be logged if the command failed? Something like:

Suggested change
subprocess.run(
["/usr/bin/codesign", "-s", "-", "-f", path], capture_output=True
)
process = subprocess.run(
["/usr/bin/codesign", "-s", "-", "-f", path], capture_output=True, text=True,
)
if process.returncode:
log.debug("codesign failed for '%s'.\nstdout:\n%s\nstderr:\n%s", path, process.stdout, process.stderr)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm keeping the same behaviour here as we do in conda: https://github.com/conda/conda/blob/a3648d7b58175fd505b3176e45e3485c6d2ea571/conda/core/portability.py#L87

I can add that logging but it will probably never pop to the user with being on debug level.

news/osx-arm64-support Outdated Show resolved Hide resolved
xhochy and others added 3 commits March 20, 2023 08:20
Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
@xhochy
Copy link
Collaborator Author

xhochy commented Mar 23, 2023

@conda/constructor This is ready for review.

@xhochy
Copy link
Collaborator Author

xhochy commented Apr 3, 2023

@dbast Can you have a look at this again?

@xhochy xhochy merged commit 2c5a539 into main Aug 4, 2023
18 checks passed
@xhochy xhochy deleted the osx-arm64 branch August 4, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Python crashes in unpacked environment on osx-arm64
4 participants