Skip to content

Strange error when using Set-ModuleFunctions during AppVeyor build #121

@tomer-ds

Description

@tomer-ds

Hi... got the error below when attempting to update the module functions during my appveyor build.

At C:\projects\mp-infra\psake.ps1:49 char:5 + Set-ModuleFunctions -Name $Manifest -Debug + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Exception calling "ShouldProcess" with "1" argument(s): "The method or operation is not implemented." --> The method or operation is not implemented. Command executed with exception: Exception calling "ShouldProcess" with "1" argument(s): "The method or operation is not implemented."

I can only imagine it has something to do with the usage of SupportsShouldProcess in your functions. Is it possilble that the lack of an explicit $true is causing this?

Anyway I have a branch where this has been changed... I can attempt to fix it if you want, but would be great if you could take a look.

Edit:
The issue only appears when I pass a specific path for the manifest.
Will add the output in a comment below

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions