Skip to content

📖 [Docs]: PowerShell module dependency guidance clarified#58

Merged
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
powershell-dependency-guidance
Jul 19, 2026
Merged

📖 [Docs]: PowerShell module dependency guidance clarified#58
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
powershell-dependency-guidance

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Jul 19, 2026

Copy link
Copy Markdown
Member

PowerShell module authors are now guided to prefer PowerShell, the .NET base class library, and code we own before introducing third-party modules, DLLs, or packages. The dependency guidance now treats a new external dependency as an explicit tradeoff instead of the default path.

Changed: PowerShell module dependency guidance

The general dependency standard, the PowerShell coding standard, the function reuse guidance, and the Process-PSModule repository guidance now consistently say that shipped modules should avoid third-party dependencies when the capability can reasonably be implemented with platform primitives or owned code. This keeps the maintenance surface, trust boundary, and long-term update burden clearer for module authors.

Technical Details

  • Added the dependency-avoidance guidance to src/docs/Coding-Standards/Dependencies.md.
  • Updated src/docs/Coding-Standards/Functions.md and src/docs/Coding-Standards/PowerShell/index.md to prefer owned code before third-party dependencies.
  • Updated src/docs/Frameworks/Process-PSModule/repository-structure.md so #Requires -Modules is framed as the path for genuinely necessary external modules.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Clarify PowerShell dependency guidance 📖 [Docs]: PowerShell module dependency guidance clarified Jul 19, 2026
@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit b2dd361 into main Jul 19, 2026
19 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the powershell-dependency-guidance branch July 19, 2026 17:21
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