Skip to content

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

Merged
premun merged 9 commits intodotnet:mainfrom
premun:prvysoky/vmr-initialization-patches
Oct 12, 2022
Merged

Do not preload list of source-build patches when syncing the VMR#2054
premun merged 9 commits intodotnet:mainfrom
premun:prvysoky/vmr-initialization-patches

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