Add repair baseline install support#514
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5a040e5f2f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 85969dd24c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4941c04c5d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b5f6a6db6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
PSPublishModule/PowerForge/Services/ModuleState/ModuleStateApplyService.cs
Lines 325 to 326 in 60b233b
When an Install action comes from -InstallMissing or a required-resource baseline and the requested transport is PrivateModule/Auto, this chooses Repair-ManagedModule for the prepared command but the argument builder never adds -InstallMissing. Re-running the emitted command with only -Name for a module that is still absent builds an empty desired state and performs no install, so private/auto plan output is not reproducible for the new missing-module repair path.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f79e46ec4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d3b512294
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary- add
Repair-ManagedModule -InstallMissingso named baselines can install missing modules while preserving installed-only behavior by default- letRepair-ManagedModuleconsume-RequiredResource/-RequiredResourceFileas desired-state repair inputs, including.psd1/.jsonfiles and JSON strings, per-resource delivery options and opt-outs, explicit scope, wildcard version selectors, repository identity/source preservation, empty-baseline behavior, and-Namefiltering- preserve private/auto repair plan commands for missing installs, license acceptance, and profile-routed required-resource repositories- preserveInstall-ManagedModule -MinimumVersion/-MaximumVersionon install plan/result requests instead of flattening them into onlyVersionPolicy- share required-resource parsing withInstall-ManagedModuleand document the baseline repair flow## ExamplepowershellRepair-ManagedModule ` -Name $m365Modules ` -InstallMissing ` -Latest ` -Repository PSGallery ` -Scope CurrentUser ` -Plan ` -ShowSummary## Validation-dotnet build .\PSPublishModule\PSPublishModule.csproj -c Release -f net472 --nologo- focusedPowerForge.Testsrepair/install/module-state suite: 162 passed-git diff --check