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: allow generated files in build actions #5230

Merged
merged 1 commit into from Oct 11, 2023
Merged

fix: allow generated files in build actions #5230

merged 1 commit into from Oct 11, 2023

Conversation

stefreak
Copy link
Member

@stefreak stefreak commented Oct 11, 2023

What this PR does / why we need it:
In the container and jib-container build actions, we checked for the
existance of files checked in to version control for certain checks.

Garden allows for files to be injected into the build action dynamically
at run time, e.g. by using copyFrom and generateFiles.

We want to check for actual presence of files in the action's build
directory instead of checking for the files that are included from
version control.

Which issue(s) this PR fixes:

Fixes #5201

Special notes for your reviewer:

In the container and jib-container build actions, we checked for the
existance of files checked in to version control for certain checks.

Garden allows for files to be injected into the build action dynamically
at run time, e.g. by using `copyFrom` and `generateFiles`.

We want to check for actual presence of files in the action's build
directory instead of checking for the files that are included from
version control.

Fixes #5201
@stefreak stefreak marked this pull request as ready for review October 11, 2023 14:53
@stefreak stefreak requested review from a team and mkhq October 11, 2023 14:53
@mkhq
Copy link
Contributor

mkhq commented Oct 11, 2023

Thanks for the extensive comments 👍

@stefreak stefreak added this pull request to the merge queue Oct 11, 2023
Merged via the queue into main with commit 1a55cf7 Oct 11, 2023
42 checks passed
@stefreak stefreak deleted the fix-5201 branch October 11, 2023 15:57
@hassinerhouma
Copy link

hassinerhouma commented Oct 24, 2023

Hey guys, could this be implemented for deploy actions as well?
#4964

@stefreak
Copy link
Member Author

@hassinerhouma Thanks for the report, I got back to you in #4964 👍

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.

0.13: [Bug]: When using templates, file added by copyFrom are excluded from the build context
3 participants