Skip to content

fix(cli): make plugg prepare set up the runtime environments use - #20

Merged
davfre merged 1 commit into
mainfrom
fix/prepare-runtime
Oct 31, 2026
Merged

davfre merged 1 commit into
mainfrom
fix/prepare-runtime

Conversation

@davfre

@davfre davfre commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

What this changes

plugg prepare now sets up the runtime that environments use. It used to download a plain Wine 11 build that no environment has run since the move to Proton in September, and on an empty cache it failed with "Runtime downloads must start at a supported project release path".

I did not add that URL to the allowed sources, because that would trust another download source for something nothing uses. provision_wine is gone. Environments already on that Wine keep their unpacked runtime, and they could not download it again before this change either.

scripts/test-integration.py called provision_wine and patched a function core.work no longer calls. It now runs through the real runtime.

Evidence

  • plugg prepare on an empty cache finished in 28 seconds and set up the Proton runtime. It failed before this change.
  • scripts/test-integration.py passes on the updated path: two instances at once, 1,000 blocks of audio each, and a rescan that changes nothing.

For code:

  • python3 scripts/check-contribution.py
  • Something that exercises the change specifically. A new test covers prepare, and I ran both checks above.

Safety

  • I did not include installers, licence files, account data, callback URLs, prefixes or downloaded runtimes.
  • I did not copy an activated prefix into a fixture.
  • If this adds an operation that writes inside a Windows environment, it is classified in plugg/licensing.py and calls licensing.guard. It adds no such operation.
  • If this adds a recipe, I have read its report. It adds no recipe.

`plugg prepare` downloaded a plain Wine 11 build that no environment has
used since they moved to Proton in September. On an empty cache it
failed, because that URL is not an allowed runtime source, and adding it
would only trust another source for something nothing runs.

Run recipes.provision instead, the same setup an install uses, and
remove provision_wine. Environments already on that Wine keep their
unpacked runtime.

scripts/test-integration.py patched provision_wine, which core.work had
stopped calling, so it now goes through the real runtime and stops the
session it starts.
@davfre
davfre force-pushed the fix/prepare-runtime branch from 5e86a6a to 9ef6c7c Compare October 31, 2026 15:14
@davfre
davfre merged commit 0197e84 into main Oct 31, 2026
5 checks passed
@davfre
davfre deleted the fix/prepare-runtime branch October 31, 2026 15:16
@davfre davfre mentioned this pull request Oct 31, 2026
3 tasks done
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