Skip to content

Update-Module: Dedupe modules #1488

Open
@vbjay

Description

@vbjay

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

I used ripgrep but any grep tool can be used

Update-Module  -Force -Verbose > .\update.log
rg -n Az\.Accounts.*version .\update.log > 'az accounts.txt'

az accounts.txt
update.log

Expected behavior

Update each unique module/version combo and not have Az.Accounts.2.13.2 for example re-installed multiple times.  Dedupe the unique found versions.  Along with detect dependent vs root modules and only update the root modules and let the dependency functionality install the dependent modules.

Actual behavior

Az.Accounts.2.13.2 and other modules were re-installed multiple times instead of unique module/versions being installed once each.

Error details

No error.  Just unnecessary repetition.

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions