Skip to content

Unable to easily install older versions? #194

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
KirkMunro opened this issue May 4, 2020 · 3 comments
Closed

Unable to easily install older versions? #194

KirkMunro opened this issue May 4, 2020 · 3 comments
Assignees
Milestone

Comments

@KirkMunro
Copy link

KirkMunro commented May 4, 2020

Now that 0.5.0 is out, I wanted to install 0.2.1 on a new system and then upgrade to 0.5.0 so that I would have both versions available to me. Typically to accomplish something like this I would simply Install-Module Microsoft.Graph -RequiredVersion 0.2.1, and then Update-Module Microsoft.Graph, however the Graph module bundle doesn't seem to handle this properly. Installing 0.2.1 at this point installs version 0.2.1 of Microsoft.Graph, along with 0.5.0 of all of the Microsoft.Graph.* modules in the bundle. That doesn't seem right. Shouldn't the Microsoft.Graph base module take dependencies on specific versions of the Microsoft.Graph* modules, so that they can be installed properly as a unit, and so that upgrading the base module results in upgrading any Microsoft.Graph* modules that are included in the bundle of the version you are upgrading to? Otherwise you're making it difficult for PowerShell script authors to work with a specific version unless they happen to be working with the latest version.
AB#7447

@ghost ghost added the ToTriage label May 4, 2020
@peombwa
Copy link
Member

peombwa commented May 4, 2020

This is a legitimate concern. We are addressing it as part of a fix for #189. Microsoft.Graph will explicitly have its dependencies mapped to a specific version as suggested in #165 .

This was referenced May 4, 2020
@darrelmiller
Copy link
Contributor

Now that we have the explicit dependencies in 0.5.1, this should be much easier in the future.
I was able to uninstall all old modules using this:

uninstall-module Microsoft.Graph -MinimumVersion 0.2.0 -MaximumVersion 0.5.0

@peombwa
Copy link
Member

peombwa commented May 11, 2021

Duplicate of #591. We will resolve this soon.

@peombwa peombwa closed this as completed May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants