Skip to content

Unable to easily install older versions? #194

Closed

Description

@KirkMunro

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

Activity

  1. peombwa commented on May 4, 2020

    @peombwa
    Member

    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 .

  2. darrelmiller commented on May 7, 2020

    @darrelmiller
    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
    
  3. added this to the Backlog milestone on Mar 26, 2021
  4. peombwa commented on May 11, 2021

    @peombwa
    Member

    Duplicate of #591. We will resolve this soon.

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions