Skip to content

Minor issues with Restore-PSPester #6143

@anmenaga

Description

@anmenaga

build.psm1 was recently updated to use 'Save-Module' in Restore-PSPester #6112
Side effects of this update broke Docker package validation tests.
Specifically:

  1. Now Restore-PSPester requires-Destinationdirectory to exist and throws error if it doesn't; Previously Restore-PSPester was creating it.
    restorepester0

  2. Default -Destination directory is NOT based on PSModulePath, but rather on a (Get-PSOptions -DefaultToNew).Output, which is not helpful at all since it requires to provide full path to the module in case pwsh is run from an installed package as opposed to built from clone repo.
    restorepester1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Buildspecific to affecting the buildIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions