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

automation: updating the Terraform Generator to use Data API V2 #3596

Conversation

tombuildsstuff
Copy link
Contributor

@tombuildsstuff tombuildsstuff commented Jan 10, 2024

This PR also updates the way the data-api tool is built and launched to match the way the generator-go-sdk and generator-terraform tools are built/launched (that is, installing them onto the $GOBIN) - meaning that the shell scripts contain all of the dependencies needed to launch the Data API v2. This means that the process is now fully reproducible with a fresh checkout, which makes debugging issues simpler.

Notably as a part of doing this the wrapper-automation tool now takes the path to the API Definitions directory, matching the behaviour of Data API V2.

Finally this PR cleans up the Github Action for the Go SDK Generator, so that we no longer build V1 of the Data API (since this is no longer using it).

This matches the behaviour used by both the Go SDK and Terraform Generators, so by assuming that each of these
is available on the path - this is easier to reproduce locally by being all done within the bash script.
…finitions` directory

This matches the behaviour of the Data API - and means the scripts can pass this in
… and updating the Terraform Generator to use Data API v2
@tombuildsstuff tombuildsstuff added tool/generator-terraform Issues with the Terraform Generator refactor labels Jan 10, 2024
@tombuildsstuff tombuildsstuff requested a review from a team January 10, 2024 11:53
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tombuildsstuff tombuildsstuff merged commit 408b2e7 into main Jan 10, 2024
9 checks passed
@tombuildsstuff tombuildsstuff deleted the automation/refactor-and-enable-data-api-v2-for-terraform-generator branch January 10, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor tool/generator-terraform Issues with the Terraform Generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants