Skip to content

Conversation

@obbardc
Copy link
Member

@obbardc obbardc commented Jan 12, 2022

If an overlay coming from the recipe directory doesn't
exist, the recipe exits during execution. Let's check
early if the overlay exists on the host filesystem.

@sjoerdsimons
Copy link
Member

bors try

bors bot added a commit that referenced this pull request Apr 28, 2022
@bors
Copy link
Contributor

bors bot commented Apr 28, 2022

try

Build failed:

@obbardc obbardc self-assigned this Jul 27, 2023
@obbardc obbardc changed the title actions/overlay: Check source exists during recipe verification actions: overlay: Check source exists during recipe verification Jul 27, 2023
@obbardc obbardc changed the title actions: overlay: Check source exists during recipe verification actions: overlay: Check source exists during RecipeDir during verification Jul 27, 2023
@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from 12bd81a to 9a89ebe Compare July 27, 2023 15:58
@obbardc obbardc requested a review from sjoerdsimons July 27, 2023 15:58
@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from 9a89ebe to add9a02 Compare January 10, 2024 15:14
@obbardc obbardc added this to the v1.1.4 milestone Jan 10, 2024
@obbardc obbardc moved this from Review required to Stalled in Debos&Fakemachine development Aug 8, 2025
@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from add9a02 to 6a99870 Compare August 10, 2025 16:22
@obbardc obbardc moved this from Stalled to In progress in Debos&Fakemachine development Aug 10, 2025
@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from 6a99870 to acf2bfc Compare August 11, 2025 16:17
@obbardc obbardc changed the title actions: overlay: Check source exists during RecipeDir during verification actions: overlay: Check source exists in recipedir early Nov 30, 2025
@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from acf2bfc to 7f31bf0 Compare November 30, 2025 21:33
@obbardc obbardc requested a review from sjoerdsimons November 30, 2025 21:33
@obbardc
Copy link
Member Author

obbardc commented Nov 30, 2025

@sjoerdsimons I've rebased this PR on main, fixed the merge issues & updated the commit messages to be a bit more sane.

@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from 7f31bf0 to 2e9a9c1 Compare November 30, 2025 21:38
If an overlay (with a source from the recipe directory which is unlikely
to change during execution) doesn't exist, the recipe errors out during
execution.

Change the logic to check early (in the verification stage) if the
overlay exists on the host filesystem inside the recipe directory, if
the overlay source is from the recipedir.

Signed-off-by: Christopher Obbard <[email protected]>
We now error out early if trying to overlay files which don't exist in
recipedir. Add a test for it.

Signed-off-by: Christopher Obbard <[email protected]>
@obbardc obbardc force-pushed the wip/obbardc/overlay-check-source-exists branch from 2e9a9c1 to 1e40464 Compare December 7, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants