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

After patch update cache fix #794

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

lightmanLP
Copy link
Contributor

When FetchContent updates dependency from git, it simply keeps patched changes as unstaged ones. It is fine in case when patch is compatible with updated patch, but otherwise the build will fail until the cache is cleared from unstaged changes.
Thats why I added additional check to remove unstaged changes and reapply patch, if there is a problem.

@Archez
Copy link
Contributor

Archez commented Jan 20, 2025

This won't work because the patch command is run directly in a terminal shell context. Parenthesis don't work for order of operations in shell execution.

@lightmanLP lightmanLP force-pushed the patch-reset branch 2 times, most recently from 09204f6 to 874ec93 Compare January 30, 2025 04:31
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