Skip to content

Better resolution of file system modules in Get-Module – Chapter 1 - #27847

Draft
Guillermo López-Anglada (guillermooo) wants to merge 99 commits into
PowerShell:masterfrom
guillermooo:users/guillermo/bugfix/better-fs-module-resolution-chapter-1
Draft

Better resolution of file system modules in Get-Module – Chapter 1#27847
Guillermo López-Anglada (guillermooo) wants to merge 99 commits into
PowerShell:masterfrom
guillermooo:users/guillermo/bugfix/better-fs-module-resolution-chapter-1

Conversation

@guillermooo

@guillermooo Guillermo López-Anglada (guillermooo) commented Aug 13, 2026

Copy link
Copy Markdown

PR Summary

A number of small pure refactors that aim to improve the code base without altering any existing behavior.

This is the full series of changes:

PR Context

These changes were made while I was getting familiar with this area of the code base and working on fixes based on

...that will be submitted in future PRs.

Important

These changes are not required and can be dropped individually, but some of them may objectively improve the code base, like parameter validation, renames, and improved documentation.

To verify conformity with existing behavior, I've used the following tests:

I haven't run any other tests.

There's always a risk of inadvertently changing existing behavior, especially due to lack of sufficient test coverage, but I think the risk in this case is low to very low for all changes.

PR Checklist

The API belongs to a different PowerShell module but is accessible.
The values are expected to be numbers, though.
No call sites using parameter name.
No call sites using parameter name. Same parameter name as
`System.IO.Path.GetRelativePath()`.
The argument for `moduleNameOrPath` cannot be null at the current call
sites.
The point is to return a fully qualified path, which cannot be the case
if `relativeTo` is `null` and we need to use it.
The comment may not apply to newer versions of .NET.
Relatively short signature and no more than three parameters.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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