Skip to content

If powershell.version is present but empty, $PSVersionTable.GitCommitId reports "Index was outside the bounds of the array" #3676

@JamesWTruher

Description

@JamesWTruher

Steps to reproduce

clear the contents of powershell.version

PS> $PSVersionTable.GitCommitId

Expected behavior

unknown

Actual behavior

Index was outside the bounds of the array.

Environment data


Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   3.0.0.0
GitCommitId                    Index was outside the bounds of the array.
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Buildspecific to affecting the buildIssue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions