-
Notifications
You must be signed in to change notification settings - Fork 98
Error Installing and Saving Semver Prerelease Modules with UpperCase PreRelease Labels from Azure Package Repositories #1787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could be that all that's needed is to add a Attached is a build of PSResourceGet with that change, can you check if it solves it? |
No change with the module supplied unfortunately Confirmed I am using the correct module, loaded it directly from a temp drive
|
Also seeing this behaviour, Find-PSresource can find the pre-release packages, however they can not be installed. Weird behaviour I noticed, if I pass it the prelease tag in all lowercase, the error message comes back with the correct casing of the tag of package installed in the feed, however still indicating it could not be found... |
Hi @AlexandraDorey , mine is working when I use all lowercase, so that's what I've been doing and have updated my own code until this is rectified... I.e. this works: |
Prerequisites
Steps to reproduce
OBSERVATIONS:
HYPOTHESIS:
I suspect that the issue may be related to case sensitivity in the version string handling, particularly in the IsLatestVersionFirstForInstall() method. The packageContent URL in the metadata response has the version in lowercase (1.0.1-prev007), while the actual version string retains its original casing (1.0.1-PREv007). This inconsistency might be causing the method to fail in reconciling the version strings.
The issue does not occur with GitHub Packages, as the packageContent URL retains the casing of the version string.
Worth noting that invoking the rest API directly against Azure package feeds DOES NOT care about the casing at all, implying this is a problem with PSResourceGet when it is doing some version check.
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: