Skip to content
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

Package installed with --allowmultiple don't show up in choco list -lo #2046

Closed
andmos opened this issue May 11, 2020 · 3 comments
Closed

Package installed with --allowmultiple don't show up in choco list -lo #2046

andmos opened this issue May 11, 2020 · 3 comments

Comments

@andmos
Copy link
Contributor

andmos commented May 11, 2020

👋 Hi guys, first of all, thanks for a great product and a nice user experience 🙏

What You Are Seeing?

I had to install an older version of the dotnetcore-sdk package side-by-side with the latest one, so I installed it using

 choco install dotnetcore-sdk --version=2.1.802 --allowmultiple=true 

The installation goes well and I can see the package both on disk (C:\ProgramData\chocolatey\lib\dotnetcore-sdk.2.1.802 and C:\ProgramData\chocolatey\lib\dotnetcore-sdk) and in the Installed Programs overview from windows, but when running choco list -lo only the latest version shows in the lits:

$ choco list -lo
dotnetcore-sdk 3.1.201

What is Expected?

Would like both versions to show when running choco list -lo.

How Did You Get This To Happen? (Steps to Reproduce)

Install some package, like latest dotnetcore-sdk, then install an older version with --allowmultiple=true and run ``choco list -lo`.

Output Log

Log of reproducing with wget package:
https://gist.github.com/andmos/98e7f8cedc493e245c43d41632a11bd5

@ferventcoder
Copy link
Member

Side by side installs don't really have a good experience - we need to either spend time on that or state that they are not really a supported use - they came in to maintain compat with old chocolatey (0.9.8.33 and below), and our recommendations for software that multiple versions can be installed should have separate package names with something in the version in the name - that way the upgrade experience is much better.

Thoughts?

@andmos
Copy link
Contributor Author

andmos commented May 18, 2020

Not quite sure how widespread the need is, but for packages like SDK's, .NET Frameworks etc, most of the packages out there follow a versioning scheme where the pacakge ID is generic and the version is reflected in the version of the package. In those cases side-by-side is needed. With that said, having the version number in the Id solves that problem, but will not give the same upgrade-experience (in my old gig we used Ansible and state=latest on a lot of packages to grab the newest version automatically) and will give the package authors more responsibility for providing "new" packages for older versions. It's a classic case of "pick your poison" I would say.

@TheCakeIsNaOH
Copy link
Member

As side by side installations have been deprecated, this issue is no longer relevant: #2787

@TheCakeIsNaOH TheCakeIsNaOH closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants