Skip to content

chore: Raise minimum PowerShell version to 5.1 in module manifest#141

Open
tablackburn wants to merge 3 commits into
mainfrom
claude/gilbert-powershellbuild-comment-h0e1wn
Open

chore: Raise minimum PowerShell version to 5.1 in module manifest#141
tablackburn wants to merge 3 commits into
mainfrom
claude/gilbert-powershellbuild-comment-h0e1wn

Conversation

@tablackburn

Copy link
Copy Markdown
Contributor

Description

  • PowerShellBuild.psd1: PowerShellVersion raised from '3.0' to '5.1', and CompatiblePSEditions = @('Desktop', 'Core') added (top-level manifest keys realigned to fit the new longest key — no other values changed)
  • docs/migration-v0.8-to-v1.0.md: first real migration entry, documenting the new platform floor (Windows PowerShell 5.1 / PowerShell 7.4+); Quick Start populated; the fictional template comment block removed per the guide's own instructions
  • CHANGELOG.md: breaking change recorded under Unreleased → Changed
  • instructions/repository-specific.instructions.md: stale "currently '3.0' — almost certainly wrong" note replaced with the decided values

No CI workflow change is needed: test.yml delegates to the org-level ModuleCI.yml, which already runs the suite on Windows PowerShell 5.1 (Desktop) and PowerShell 7+ across Linux/Windows/macOS.

Related Issue

Phase 1 of #120 — "Audit PowerShellVersion in PowerShellBuild.psd1" and "Add CompatiblePSEditions". Decision record: #120 (comment)

Motivation and Context

The '3.0' floor was aspirational: the module's dependencies (Pester 5+/6, BuildHelpers, PSDepend) and toolchain (Microsoft.PowerShell.PlatyPS 1.x in Phase 2) require at least 5.1, and a 0.8.0 regression previously proved nothing enforced the declared floor. The manifest now states the contract that is actually tested. Microsoft.PowerShell.PlatyPS 1.x was validated end-to-end on Windows PowerShell 5.1 before locking the decision in (see the decision record).

How Has This Been Tested?

  • Full repo suite (./build.ps1 -Task Test -Bootstrap) run locally on PowerShell 7.6 / Linux
  • The org ModuleCI.yml workflow on this PR exercises the real Windows PowerShell 5.1 engine plus PowerShell 7+ on three platforms
  • Manifest validity is covered by the existing tests/Manifest.tests.ps1

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly (migration guide + changelog + AIM instructions)
  • I have read the CONTRIBUTING document
  • I have added tests to cover my changes (metadata-only change; covered by existing manifest tests)
  • All new and existing tests passed

Breaking Changes

The manifest now blocks Import-Module on PowerShell older than 5.1. Migration entry included in this PR (docs/migration-v0.8-to-v1.0.md).

🤖 Generated with Claude Code

https://claude.ai/code/session_01BxrhSpD47TSrS9hEJpDMaH


Generated by Claude Code

- PowerShellVersion '3.0' -> '5.1'; add CompatiblePSEditions Desktop/Core
- Add the first migration-guide entry documenting the new platform floor
- Record the change in the changelog under Unreleased
- Refresh the stale manifest note in repository-specific instructions

BREAKING CHANGE: the manifest now blocks import on PowerShell older than
5.1. Supported and CI-tested platforms are Windows PowerShell 5.1 and
PowerShell 7.4+. Decision record: #120.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BxrhSpD47TSrS9hEJpDMaH
Copilot AI review requested due to automatic review settings July 21, 2026 23:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the module’s declared PowerShell support contract by raising the manifest minimum engine version and aligning repo documentation to the new platform floor as part of the v1.0.0 roadmap.

Changes:

  • Raise PowerShellVersion to 5.1 and add CompatiblePSEditions = @('Desktop','Core') in the module manifest.
  • Add the first real v0.8 → v1.0 migration-guide entry and populate Quick Start with the breaking-change summary.
  • Record the breaking change in CHANGELOG.md and update repository-specific agent instructions to reflect the new support floor.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
PowerShellBuild/PowerShellBuild.psd1 Raises minimum engine version to 5.1 and declares Desktop/Core compatibility.
docs/migration-v0.8-to-v1.0.md Documents the breaking change and adds a Quick Start entry plus the first migration entry.
CHANGELOG.md Records the breaking change under Unreleased.
instructions/repository-specific.instructions.md Updates repo instructions to state the new manifest/platform support contract.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread instructions/repository-specific.instructions.md Outdated
Comment thread docs/migration-v0.8-to-v1.0.md Outdated
Comment thread docs/migration-v0.8-to-v1.0.md Outdated
Comment thread CHANGELOG.md Outdated
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

Test Results

    4 files  ±0    664 suites  ±0   3m 24s ⏱️ -7s
  405 tests ±0    403 ✅ ±0   2 💤 ±0  0 ❌ ±0 
1 624 runs  ±0  1 577 ✅ ±0  47 💤 ±0  0 ❌ ±0 

Results for commit 79c5de0. ± Comparison against base commit bae3e9b.

♻️ This comment has been updated with latest results.

…version

CI runs Windows PowerShell 5.1 and the runners' current PowerShell 7
release; it does not pin a 7.4 job. Reword the migration guide,
changelog, and AIM instructions so 7.4+ reads as the support floor
rather than a specifically CI-tested version, per PR review feedback.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BxrhSpD47TSrS9hEJpDMaH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants