Browse Source

docs(lab): warn that powershell.exe started from PowerShell 7 inherits its module path

A cell of the matrix did nothing when the maintainer started
Run-MatrixSequence.ps1 with Start-Process powershell.exe from a PowerShell 7
session: Windows PowerShell 5.1 inherits the PSModulePath of PowerShell 7,
cannot load Microsoft.PowerShell.Utility from it, the script stops at its
first call of Get-FileHash, and a hidden window leaves no log. The README of
the lab kit now says to start the scripts in a Windows PowerShell window, or
from PowerShell 7 to set the module path to the three WindowsPowerShell
folders first.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: AI Assistant <ai@example.com>
pull/125/head
Raimund Andree 3 weeks ago
parent
commit
a14e5b5040
  1. 7
      Tests/Lab/README.md

7
Tests/Lab/README.md

@ -176,7 +176,12 @@ A run with `-ModulePath` validates a build. The acceptance of a release is the
run with `-Version` of the exact prerelease on the PowerShell Gallery, as
`Docs\Contributing\05-Releasing.md` describes. The scripts in the folder
[Acceptance](Acceptance) support it, and each runs in Windows PowerShell 5.1 on
the host:
the host. Start them in a Windows PowerShell window. A `powershell.exe` that
PowerShell 7 starts inherits the `PSModulePath` of PowerShell 7, and the script
stops at its first call of `Get-FileHash`, without a log when its window is
hidden; from PowerShell 7, set `$env:PSModulePath` to the three
`WindowsPowerShell\Modules` folders (Documents, Program Files, and System32)
before you start one:
- `Test-PublishedRelease.ps1 -Version <version> -OutputPath <folder>` checks a
published version and changes nothing: the tag and its commit on `master`,

Loading…
Cancel
Save