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

scripts to convert a branch from Ruby->Go #8195

Conversation

modular-magician
Copy link
Collaborator

Two scripts to convert a pre-switchover change to a post-switchover change without dealing with conflicts

scripts/convert-go.sh does the conversion in a pre-switchover commit and outputs the converted files to *.temp files.
Example command from mmv1/ (in a pre-switchover commit)

sh ../scripts/convert-go.sh <provider output directory> <comma separated list of files that have changed in the PR> 

scripts/cherry-pick.sh prepares a new branch in a post-switchover commit and cherry-picks the previous *.temp files
Example command from root MM directory

sh scripts/cherry-pick <hash of a post-switchover commit>

Release Note Template for Downstream PRs (will be copied)


Derived from GoogleCloudPlatform/magic-modules#11666

[upstream:e709ea5998cc1b6a429dd76c95f0a46c496925ef]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit 0b3d3ca into hashicorp:main Sep 16, 2024
@modular-magician modular-magician deleted the downstream-pr-e709ea5998cc1b6a429dd76c95f0a46c496925ef branch November 16, 2024 03:42
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.

1 participant