PowerShell / PowerShell/PowerShell
Test-ModuleManifest Tag property stacks
Open
Nobody has claimed this yet.
In-PR
Needs-Triage
WG-Engine-Module
- Dominant language
- C#
- Stars
- 55.5k
- Forks
- 8.5k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 88
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Test-ModuleManifest Tag property stacks
Didn't have time to review completly please confirm.
Check in master an may spoted the bug. Please see Error Details
$data = Test-ModuleManifest -Path "$PackageManifest"
Write-Host "$($data.Tags.Count)"
$data = Test-ModuleManifest -Path "$PackageManifest"
Write-Host "$($data.Tags.Count)"
$data = Test-ModuleManifest -Path "$PackageManifest"
Write-Host "$($data.Tags.Count)"
$data = Test-ModuleManifest -Path "$PackageManifest"
Write-Host "$($data.Tags.Count)"
$data = Test-ModuleManifest -Path "$PackageManifest"
Write-Host "$($data.Tags.Count)"
$data = Test-ModuleManifest -Path "$PackageManifest"
Write-Host "$($data.Tags.Count)"
Expected behavior
2
2
2
2
2
2
Actual behavior
...
50
52
54
56
58
60
...
Error details
Please review in ModuleCmdletBase.cs
Line 3225 till 3236
In conjunction with PSModuleInfo.cs
Line 318 till 356
Environment data
Name Value
---- -----
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Visuals
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the repeated Test-ModuleManifest calls and checking that the tag count grows instead of remaining at 2. Read ModuleCmdletBase.cs lines 3225-3236 alongside PSModuleInfo.cs lines 318-356, then verify the behavior against the expected repeated counts shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100