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

Remove OneOf implementation for Build type #518

Merged
merged 3 commits into from
Mar 7, 2023

Conversation

guineveresaenger
Copy link
Contributor

We are using the Build object to create additional internal logic to discover and set changes to contextDigest and platform.
As such, it is no longer practical to keep the OneOf implementation of Build that allows for it to be a string.
The build context string will need to be passed explicitly to the Build.Context field, which provides the exact same functionality.

Fixes #428

  • Remove OneOf and generate the schema
  • generate SDKs
  • remove string input handling from implementation

@github-actions
Copy link

github-actions bot commented Mar 7, 2023

Does the PR have any schema changes?

Found 1 breaking change:
Resource "docker:index/image:Image" input "build" type changed from "" to "#/types/docker:index/dockerBuild:DockerBuild"
No new resources/functions.

Copy link
Contributor

@jazzyfresh jazzyfresh left a comment

Choose a reason for hiding this comment

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

It looks a lot cleaner this way too, thank you!

@guineveresaenger guineveresaenger merged commit aedffd8 into master Mar 7, 2023
@guineveresaenger guineveresaenger deleted the guin/standardize-build branch March 7, 2023 20:15
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.

Image: Deprecate OneOf implementation for build
2 participants