Azure / Azure/azure-sdk-tools

PSModule-Helpers.ps1 is not removing some module imports

Open
#3,039 0 comments 0 reactions 1 assignee Claimed by @sima-zhu View on GitHub
Central-EngSys
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

Some module imports during image generation [use two backslashes in the path](https://github.com/actions/virtual-environments/blob/main/images/win/scripts/Installers/Install-AzureModules.ps1#L7)... In cases like this the PSModule-Helpers does not match these paths because it's checking for paths that start with a single backslash.

PSModule-Helpers.ps1 should resolve paths it encounters and then process exclusions. This will mitigate the problem of multiple backslashes entries in `$env:PSModulePath`

Found while working on https://github.com/Azure/azure-sdk-for-cpp/pull/3482/files

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.