Skip to content

Module manifest could not be processed #12599

Closed

Description

Steps to reproduce

Module files.zip

Running Test-ModuleManifest -Path "ATTACHED psd1 FILE"

PS C:\Users\nrtat> Test-ModuleManifest -Path .\Documents\WindowsPowerShell\Modules\Tatux.Utils\Tatux.Utils.psd1

This issue presented itself while trying to use Publish-Module
I then tested the command in both versions of PS

Expected behavior

Manifest file is validated.

The command above works in Powershell Verstion 5.1

Actual behavior

Test-ModuleManifest: The module manifest 'Tatux.Utils' could not be processed because it is not a valid PowerShell module manifest file. Remove the elements that are not permitted: C:\Users\nrtat\Documents\WindowsPowerShell\Modules\Tatux.Utils\Tatux.Utils.psd1

Environment data

Name Value


PSVersion 7.0.0
PSEdition Core
GitCommitId 7.0.0
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0


Activity

  1. added
    Issue-Question
    on May 7, 2020
  2. changed the title [-]My bug report[/-] [+]Module manifest could not be processed[/+] on May 9, 2020
  3. iSazonov commented on Jan 16, 2021

    @iSazonov
    Collaborator

    In "Tatux.Utils" Utils is considered as a file extension.
    The regression comes from #8687 (#8388) /cc Michael Klement (@mklement0)
    See HasValidRootModule() method

    // Check for extensions
    string rootModuleExt = System.IO.Path.GetExtension(module.RootModule);
    if (!string.IsNullOrEmpty(rootModuleExt))
    {
    // Check that the root module's extension is an allowed one
    if (!s_validRootModuleExtensions.Contains(rootModuleExt, StringComparer.OrdinalIgnoreCase))
    {
    return false;
    }
    // Check the file path of the full root module
    return IsValidFilePath(module.RootModule, module, verifyPathScope: true);
    }

  4. added
    Issue-Bug
    and removed
    Issue-Question
    on Jan 16, 2021
  5. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  6. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  7. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  8. added
    Resolution-No Activity
    on Nov 16, 2023
  9. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

  10. added
    WG-Cmdlets
    and removed on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugResolution-No ActivityWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions