PowerShell / PowerShell/PSResourceGet
[Find-PSResource] To a same module into a local repository and a webserver repository, the content of the property 'VersionRange' of the dependency is different
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 576
- Fork
- 114
- Merge medio
- 1g 2h
- PR unite (30g)
- 7
Descrizione
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
When I search the same module into a local repository and a webserver repository, the property 'VersionRange' of the dependency is different. The packages are identical into the both repository
Packages.zip
C:\temp> Get-PSresourceRepository|select *|ft
Name Uri Trusted Priority CredentialInfo ApiVersion
---- --- ------- -------- -------------- ----------
PSRepoLocal file:///C:/Users/Laurent/AppData/Local/Temp/PSRepoLocal True 40 local
DevOttoMatt https://www.myget.org/F/devottomatt/api/v2 True 50 v2
PSGallery https://www.powershellgallery.com/api/v2 True 50 v2
RepoTestV3 https://nuget.cloudsmith.io/repopsresourceget/test/v3/index.json True 50 v3
C:\temp> $M=Find-PSResource 'string' -Repository PSRepoLocal -Version 1.0.0
C:\temp> $m
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
String 1.0.0 PSRepoLocal Module String
C:\temp> $m.Dependencies
Name VersionRange
---- ------------
UpperCase [1.0.0, )
C:\temp> $M.Dependencies[0].VersionRange|select *
IsFloating : False
MinVersion : 1.0.0
MaxVersion :
HasLowerBound : True
IsMinInclusive : True
HasUpperBound : False
IsMaxInclusive : False
HasLowerAndUpperBounds : False
Float :
OriginalString :
C:\temp> $M2=Find-PSResource 'string' -Repository DevOttoMatt -Version 1.0.0
C:\temp> $M2
Name Version Prerelease Repository Description
---- ------- ---------- ---------- -----------
String 1.0.0 DevOttoMatt Module String
C:\temp> $M2.Dependencies
Name VersionRange
---- ------------
UpperCase [1.0.0, 1.0.0]
C:\temp> $M2.Dependencies[0].VersionRange|select *
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
Expected behavior
The contents of the 'VersionRange' property should be the same.
Actual behavior
Repo local :
VersionRange equal to '[1.0.0, )'
Repo web server
VersionRange equal to '[1.0.0, 1.0.0]'
Error details
no error
Environment data
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 0.5.24 Microsoft.PowerShell.PSResourceGet {Find-PSResource, Get-InstalledPSResource, Get-PSResourceR...
Key : PSVersion
Value : 5.1.19041.3031
Name : PSVersion
Key : PSEdition
Value : Desktop
Name : PSEdition
Key : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.19041.3031}
Name : PSCompatibleVersions
Key : BuildVersion
Value : 10.0.19041.3031
Name : BuildVersion
Key : CLRVersion
Value : 4.0.30319.42000
Name : CLRVersion
Key : WSManStackVersion
Value : 3.0
Name : WSManStackVersion
Key : PSRemotingProtocolVersion
Value : 2.3
Name : PSRemotingProtocolVersion
Key : SerializationVersion
Value : 1.1.0.1
Name : SerializationVersion
Visuals
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo i risultati di Find-PSResource con il Packages.zip allegato nei repository locale e di Webserver, quindi confronta come ciascuno produce il VersionRange della dipendenza. Il lavoro è completato quando il contenuto di VersionRange è identico per lo stesso pacchetto e la stessa dipendenza in entrambi i tipi di repository.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, powershell
- Ambito
- cli, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100