Skip to content

Can't downgrade prerelease version using find | install #348

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

Closed
rkeithhill opened this issue Mar 9, 2021 · 3 comments · Fixed by #523
Closed

Can't downgrade prerelease version using find | install #348

rkeithhill opened this issue Mar 9, 2021 · 3 comments · Fixed by #523
Assignees
Milestone

Comments

@rkeithhill
Copy link

I updated to PSReadlLine 2.2.0-beta2 but on my system, it has some serious perf issues and when I start an admin Windows Terminal, none of my history is available. So I want to downgrade to beta1. I can remove beta2 but my first attempt to install beta1 failed:

> Find-PSResource psreadline -Prerelease -Version 2.2.0-beta1 | Install-PSResource
Install-PSResource: Unable to cast object of type 'System.Version' to type 'NuGet.Versioning.NuGetVersion'.

Seems like that should work. I did get the following to work:

Install-PSResource PSReadLine -Prerelease -Version 2.2.0-beta1

Which makes the find | install failure that much more puzzling.

@SydneyhSmith
Copy link
Collaborator

Thanks for reporting this @rkeithhill we are able to reproduce it

@anamnavi
Copy link
Member

Just a note for when I investigate this: if I have a non-prerelease version also installed, running his command removes that other version while also not installing the downgraded version.

@anamnavi
Copy link
Member

anamnavi commented Nov 3, 2021

This works now and will be resolved by PR #523 to be released in 3.0.12 preview release soon. You still can't install two versions side by side which have the same powershell version part (i.e 2.2.0-beta1 and 2.2.0-beta2 and 2.2.0 all have the same powershell version part. But downgrading should work:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants