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

added mechanisms for codesign when testing #72

Merged
merged 3 commits into from
Oct 13, 2022

Conversation

Code-Hex
Copy link
Owner

Which issue(s) this PR fixes:

#69

Additional documentation

This PR is required for integration testing. Running make test executes the test code after codesign.

cmd/codesign/main.go Outdated Show resolved Hide resolved
}
defer os.Remove(f.Name()) // clean up

cmd := exec.Command("codesign", "--entitlements", f.Name(), "-s", "-", os.Args[1])
Copy link
Contributor

Choose a reason for hiding this comment

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

use a variable codesignArgs := []string { "codesign", "--entitlements", f.Name(), "-s", "-", os.Args[1]} to avoid code duplication when there is an error?

Copy link
Owner Author

@Code-Hex Code-Hex Oct 13, 2022

Choose a reason for hiding this comment

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

I think it is not a large benefit. It's not a part that is frequently modified.

@Code-Hex Code-Hex merged commit 5055ab3 into master Oct 13, 2022
@Code-Hex Code-Hex deleted the add/codesign-and-testing branch October 13, 2022 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants