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

schema: add mapstructure struct tag to dockerfile_inline #391

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

laurazard
Copy link
Member

@laurazard laurazard commented Apr 18, 2023

Without the proper struct tag the loader won't populate the dockerfile_inline field, and so this wasn't getting converted from the dict -> BuildConfig struct.

Adds some tests as well.

related:

cute animal even though it's not required:

image

@laurazard laurazard requested a review from ndeloof as a code owner April 18, 2023 21:19
@laurazard laurazard requested review from glours and milas April 18, 2023 21:20
@laurazard laurazard force-pushed the fix-dockerfile-inline branch from fb37c12 to 2aa6a99 Compare April 18, 2023 21:27
Copy link
Member

@milas milas left a comment

Choose a reason for hiding this comment

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

This poor field 🥲

Without the proper struct tag the loader won't populate the `dockerfile_inline`
field, and so this was not getting converted from the dict -> BuildConfig struct.

Signed-off-by: Laura Brehm <[email protected]>
@laurazard laurazard force-pushed the fix-dockerfile-inline branch from 2aa6a99 to 565417c Compare April 18, 2023 21:47
@laurazard laurazard merged commit 7bd0f24 into compose-spec:master Apr 18, 2023
@ndeloof
Copy link
Collaborator

ndeloof commented Apr 19, 2023

I created #392 so we don't make such mistakes anymore

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.

3 participants