Skip to content

Incorrect Common module dependency for versions 4.1.876 to 4.1.882 and 5.0.0 to 5.0.36 #394

@afroz429

Description

@afroz429

Describe the bug

Affected Versions of AWS Tools Modules:

  • 4.1.876 to 4.1.882
  • 5.0.0 to 5.0.36

Unaffected Modules

  • AWSPowerShell
  • AWSPowerShell.NETCore

Resolution

  • The module installation issue has been resolved in version 4.1.883 or above for v4
  • The module installation issue has been resolved in version 5.0.37 or above for v5

Customer Impact
Import-Module fails to import the module when a service module is installed with explicit version from the affected versions as shown below

Install-Module AWS.Tools.S3  -Repository PSGallery -RequiredVersion 4.1.877 -Force
Import-Module -Name AWS.Tools.S3 -RequiredVersion 4.1.877

Import-Module: The required module 'AWS.Tools.Common' is not loaded. Load the module or remove the module from 'RequiredModules' in the file 'C:\Users\afrozam\Documents\PowerShell\Modules\AWS.Tools.S3\4.1.877\AWS.Tools.S3.psd1'.
Import-Module: The specified module 'AWS.Tools.S3' with version '4.1.877' was not loaded because no valid module file was found in any module directory.

AWS.Tools.Common is a required dependency for all AWS Tools service modules and must match the service module version exactly. The affected versions were published with incorrect AWS.Tools.Common dependency. As a result, when a service module in the affected version is explicitly installed, latest version of AWS.Tools.Common is being installed instead of the specified version. Which results in version mismatch between the service module and the common module.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

When a service module is installed with an explicit version, AWS.Tools.Common should be installed with the same exact version of the service module

Current Behavior

When a service module is installed with an explicit version, latest v5 version of AWS.Tools.Common is being installed resulting in module version mismatch.

Reproduction Steps

Install-Module AWS.Tools.S3  -Repository PSGallery -RequiredVersion 4.1.877 -Force
Import-Module -Name AWS.Tools.S3 -RequiredVersion 4.1.877

Possible Solution

  • The module installation issue has been resolved in version 4.1.883 or above for v4
  • The module installation issue has been resolved in version 5.0.37 or above for v5

Additional Information/Context

No response

AWS Tools for PowerShell version used

Affected Versions of AWS Tools Modules:

  • 4.1.876 to 4.1.882
  • 5.0.0 to 5.0.36

PowerShell version used

Any

Operating System and version

Any

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