Skip to content

fix: create runtime-donor snapshot whenever manifest is missing - #114

Merged
Zaldaryon merged 1 commit into
mainfrom
fix/runtime-donor-snapshot-reused-vanilla
Sep 17, 2026
Merged

Zaldaryon merged 1 commit into
mainfrom
fix/runtime-donor-snapshot-reused-vanilla

Conversation

@Zaldaryon

Copy link
Copy Markdown
Collaborator

When the installer reused an existing vanilla directory (the common case on reinstall and upgrade), \ reshExtract\ and \skipDownload\ were both false, so the snapshot-creation branch in \�ootstrap.ps1\ was never entered. Only a warning was emitted. \prepare-runtime-donors.ps1\ then threw \Required runtime-donor input not found: runtime-donor-manifest.sha256\ because the snapshot had never been written.

The fix removes the \ -and\ guard from the condition so the snapshot is created whenever the manifest is absent, regardless of how the vanilla directory was obtained. \New-RuntimeDonorSnapshot\ is safe to call on any valid vanilla directory: it removes and recreates the snapshot dir cleanly, copies the DLLs, and has its own guard that throws if the vanilla dir already contains Optimum build output.

Fixes the failure reported with 0.3.17 on reinstall/upgrade scenarios.

When the installer reused an existing vanilla directory (the common case on reinstall and upgrade), freshExtract was false and skipDownload was false, so the snapshot-creation branch was never entered. Only a warning was emitted. prepare-runtime-donors.ps1 then threw 'Required runtime-donor input not found: runtime-donor-manifest.sha256' because the snapshot had never been written.

Remove the skipDownload guard so the snapshot is created whenever the manifest is absent, regardless of how the vanilla directory was obtained.
@Zaldaryon
Zaldaryon merged commit 22994fd into main Sep 17, 2026
2 checks passed
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.

1 participant