Repository navigation
fix(plugins): name the audience in doctor's missing-plugin remedy - #225
Merged
Merged
Conversation
Strict verification told a missing audience plugin to run `mate install --yes --frozen-plugins`, which installs nothing for the audience. Build the remedy from pluginInstallCommand(origin), as hydration does, so it names MATE_AUDIENCE=<audience>.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mate doctor(strict plugin verification) named the wrong install command for a missing audience plugin. Hydration already namedMATE_AUDIENCE=<audience> mate install. Verify now builds its remedy from the same helper,pluginInstallCommand(origin).A frozen restore with
MATE_AUDIENCEset installs that audience's workspace (installPluginWorkspaces), so the frozen form stays the remedy.Evidence
MATE_AUDIENCE=po mate doctor, audience plugins not installed):po.not installed; run setup (\MATE_AUDIENCE=po mate install --yes --frozen-plugins`) to install it`.verify.test.ts› "a missing audience package names the audience in its install command". It failed on ff9315f with the doctor text above and passes now. The existing "a missing package says setup must install it" test pins the base text.bun run format,bun run lint,bun run typecheck: pass.packages/mate-corebun run test: 7000 pass, 3 fail (vault.test.ts×2,opencode-plugin/package-packaging.test.ts: timeouts under full-suite load; both files pass alone, 30/30).OpenSpec change:
name-audience-in-verify-remedyFriction: command:doctor:1