Skip to content

build.psm1’s Start-PSBootstrap ostensibly supports ShouldProcess; doesn’t actually support it #15490

@schuelermine

Description

@schuelermine

Steps to reproduce (potentially destructive)

git clone https://github.com/PowerShell/PowerShell.git
Set-Location ./PowerShell
Import-Module ./build.psm1
Start-PSBootstrap -WhatIf

Expected behavior

Either of:

  • Invocation fails due to unsupported parameter WhatIf
  • Process is simulated

Actual behavior

Process proceeds normally

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Linux 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP Thu Apr 22 16:00:45 UTC 
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions