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

Do not preload list of source-build patches when syncing the VMR #2054

Merged
merged 9 commits into from
Oct 12, 2022

Conversation

premun
Copy link
Member

@premun premun commented Oct 12, 2022

Originally, we loaded the list of source-build patches at the beginning of the whole init/update process.
This caused following issues:

  • When initializing fresh VMR, no templates are present, so none were applied during the initialization.
  • When a new patch is added in installer and synced into the VMR, it is not applied during that sync.

This PR changes it so that we check the patches folder each time we want to apply patches back.
Furthermore, this PR:

  • Renames VmrManagerConfiguration to VmrInfo
  • Keeps VmrDependencyTracker only tracking dependencies
  • Fixes a bug when file that is being added by a patch needs to be removed first

dotnet/arcade#10261
dotnet/arcade#10268

dkurepa
dkurepa previously approved these changes Oct 12, 2022
@premun premun requested a review from dkurepa October 12, 2022 13:21
@premun premun merged commit 537a89e into dotnet:main Oct 12, 2022
@premun premun deleted the prvysoky/vmr-initialization-patches branch October 12, 2022 13:24
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