You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update-PSResource fails to upgrade same-version prerelease -> full release #1953
installedPackage.Version is a System.Version which doesn't have a prerelease string. installedPackage.Prerelease is alpha1, but it doesn't seem like that's being included here. After this line, installedVersion is 2.15.0, not 2.15.0-alpha1.
Anam Navied (@anamnavi) - I see you're the owner of most of the test_module PSGallery modules - would you be able to publish another test module with two packages (one prerelease, one not) that have matching version numbers?
This behavior feels like something that should have a test associated with it. I'm happy to write one, but since it depends on live Gallery packages I'm not sure if 3P contributors should be uploading those modules themselves.
I can also upload the modules myself if you'd like to manually take ownership of the packages from the Gallery backend. Let me know what's preferred here.
Activity
sean-r-williams commentedon Feb 28, 2026
Looking at PSRG under a debugger, I think the following line is the culprit:
PSResourceGet/src/code/UpdatePSResource.cs
Line 393 in 73b90e3
installedPackage.Versionis aSystem.Versionwhich doesn't have a prerelease string.installedPackage.Prereleaseisalpha1, but it doesn't seem like that's being included here. After this line,installedVersionis2.15.0, not2.15.0-alpha1.sean-r-williams commentedon Feb 28, 2026
Anam Navied (@anamnavi) - I see you're the owner of most of the
test_modulePSGallery modules - would you be able to publish another test module with two packages (one prerelease, one not) that have matching version numbers?This behavior feels like something that should have a test associated with it. I'm happy to write one, but since it depends on live Gallery packages I'm not sure if 3P contributors should be uploading those modules themselves.
I can also upload the modules myself if you'd like to manually take ownership of the packages from the Gallery backend. Let me know what's preferred here.
sean-r-williams commentedon Mar 19, 2026
Sydney Smith (@SydneyhSmith) Anam Navied (@anamnavi) Checking back in on this as it's been a bit - what are the next steps for getting test modules on the Gallery?