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

Fix Homebrew sync script #83

Merged
merged 1 commit into from
Jul 11, 2022
Merged

Fix Homebrew sync script #83

merged 1 commit into from
Jul 11, 2022

Conversation

snay2
Copy link
Contributor

@snay2 snay2 commented Jul 7, 2022

Issue #, if available: N/A

Description of changes:

The automated process that opens a PR to https://github.com/aws/homebrew-tap is using the wrong file name (simple-ec2.json instead of aws-simple-ec2-cli.json), meaning the diff is always wrong and we have to manually open a release PR there with the changes. Here's an example of the most recent incorrect PR: aws/homebrew-tap#360

This repo uses different names for the binary and for the brew formula, unlike our other repos. Introduced a new optional parameter to the homebrew sync script to allow specifying a formula name. If not supplied, it will default to the binary name, keeping the same behavior as before.

Some work remains to get this on par with instance-selector (such as adding support for Mac M1 builds).

Testing:

I used this code in a dry-run configuration to generate the diff for aws/homebrew-tap#361, which verified that it works as intended. Next time we release simple-ec2, the GitHub Actions should be able to automatically open the homebrew-tap release PR correctly.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This repo uses different names for the binary and for the brew formula,
unlike our other repos. Introduced a new optional parameter to the
homebrew sync script to allow specifying a formula name. If not
supplied, it will default to the binary name, keeping the same behavior
as before.

Some work remains to get this on par with instance-selector (such as
adding support for Mac M1 builds).
@snay2 snay2 requested a review from a team as a code owner July 7, 2022 22:40
Copy link
Contributor

@brycahta brycahta left a comment

Choose a reason for hiding this comment

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

/lgtm

@snay2 snay2 merged commit 8b9e8ae into awslabs:main Jul 11, 2022
@snay2 snay2 deleted the fix-homebrew-sync branch July 11, 2022 14:37
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.

2 participants