Find-PSResource IncludeDependencies incorrectly parses VersionRange
@anamnavi がすでに取り組んでいます。
2026年8月6日 から。
評価
この issue はまだ評価されていません。
説明
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
Package is published with nuspec specifying
<dependencies>
<dependency id="MyPackage" version="1.0.0" />
</dependencies>
Find-PSResource incorrectly sets the maximum version as 1.0.0 too, resulting in Save-PSResource not finding "MyPackage" with version 2.0.0.
This goes against MSFT documentation https://learn.microsoft.com/en-us/nuget/concepts/package-versioning?tabs=semver20sort#version-ranges
Find-Module and Save-Module work correctly.
Tested with Azure and locally hosted https://learn.microsoft.com/en-us/nuget/hosting-packages/nuget-server
(Find-PSResource -Name MyPackage -Repository LocalPSRepo -IncludeDependencies).Dependencies.VersionRange
Expected behavior
IsFloating : False
MinVersion : 1.0.0
MaxVersion : // Maybe this shouldn't exist at all
HasLowerBound : True
IsMinInclusive : True
HasUpperBound : False
IsMaxInclusive : False //Not sure on this
HasLowerAndUpperBounds : True
Float :
OriginalString : 1.0.0
Actual behavior
IsFloating : False
MinVersion : 1.0.0
MaxVersion : 1.0.0
HasLowerBound : True
IsMinInclusive : True
HasUpperBound : True
IsMaxInclusive : True
HasLowerAndUpperBounds : True
Float :
OriginalString : 1.0.0
Environment data
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 1.2.0 Microsoft.PowerShell.PSResourceGet {Compress-PSRes…
Name Value
---- -----
PSVersion 7.6.0
PSEdition Core
GitCommitId 7.6.0
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
- 主要言語
- C#
- スター
- 576
- フォーク
- 114
- 平均マージ
- 23時間 17分
- マージ済み PR(30日)
- 8
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/PSResourceGet のほかの issue
-
Create parent directories only after the containment check in InstallHelper.TryExtractToDirectory オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PowerShell/PSResourceGet#2056 ·
-
feature_request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2013 · コメント 3 件 ·
-
feature_request Needs-Triage
PowerShell/PSResourceGet#2057 · 担当者 1 名 ·
-
Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
PowerShell/PSResourceGet#2055 ·
-
Needs-Triage
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
PowerShell/PSResourceGet#2054 ·
PowerShell/PSResourceGet の issue をすべて見る
似ている issue
-
priority-0
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
StackExchange/StackExchange.Redis#3249 ·
-
[Feat] 조합 영역 구분선 개선 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100