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(core): override Build version with module #3908

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

thsig
Copy link
Collaborator

@thsig thsig commented Mar 8, 2023

What this PR does / why we need it:

For BuildActions generated by converting modules, we now override the versionString of the full version of Build actions with the versionString of their parent module.

This fixes an issue where e.g. helm modules that referred to ${modules.some-container-module.version} would fail to deploy, since the version of the Build action that container-module would get converted to wouldn't match that of the container module that it was converted from—this resulted in a different version being built than the Helm chart expected, leading to image pull errors.

The same pattern is also standard when using kubernetes and container modules in conjunction.

This should ease the transition from 0.12 to 0.13 for many projects.

@thsig thsig requested a review from edvald March 8, 2023 10:16
For `BuildAction`s generated by converting modules, we now override
the `versionString` of the full version of `Build` actions with the
`versionString` of their parent module.

This fixes an issue where e.g. `helm` modules that referred to
`${modules.some-container-module.version}` would fail to deploy, since
the version of the Build action that `container-module` would get
converted to wouldn't match that of the `container` module that it was
converted from—this resulted in a different version being built than the
Helm chart expected, leading to image pull errors.

The same pattern is also standard when using `kubernetes` and
`container` modules in conjunction.

This should ease the transition from 0.12 to 0.13 for many projects.
@thsig thsig force-pushed the override-build-version-with-parent-module branch from a5c801b to 565ce12 Compare March 8, 2023 10:16
Copy link
Collaborator

@edvald edvald left a comment

Choose a reason for hiding this comment

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

Nice!

@thsig thsig merged commit 13f2b7d into 0.13 Mar 8, 2023
@thsig thsig deleted the override-build-version-with-parent-module branch March 8, 2023 11:17
This was referenced May 11, 2023
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