Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: psake/PowerShellBuild
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: psake/PowerShellBuild
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: spike/psake-5x
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 20, 2026

  1. test: Guard Set-BuildEnvironment against the psake 5.x break escape

    BuildHelpers' Get-BuildVariable uses `break` inside switch blocks. Called from a
    Pester BeforeAll, that break can unwind out of the block. psake 4.9.x absorbs it;
    psake 5.x does not, so Pester fails the whole Manifest.tests.ps1 container
    (pester/Pester#2669) and the suite drops 12 tests.
    
    build.ps1 already calls Set-BuildEnvironment -Force before Invoke-psake, so inside
    a build the call in BeforeAll is redundant. Guard it on $env:BHProjectName: a no-op
    during a build, still populated for standalone Invoke-Pester runs.
    
    Found while spiking psake 5.0.4 for #155. Verified: full suite
    428 passed / 0 failed under both psake 4.9.1 and 5.0.4, and 10/0 standalone with a
    cleared environment.
    
    Refs #155
    tablackburn committed Aug 20, 2026
    Configuration menu
    Copy the full SHA
    5ec9a01 View commit details
    Browse the repository at this point in the history
Loading