Skip to content

fix: normalise AddContent path separators to forward slash on PS5.1#465

Merged
HeyItsGilbert merged 1 commit into
mainfrom
fix/ps51-path-separator
May 26, 2026
Merged

fix: normalise AddContent path separators to forward slash on PS5.1#465
HeyItsGilbert merged 1 commit into
mainfrom
fix/ps51-path-separator

Conversation

@HeyItsGilbert
Copy link
Copy Markdown
Member

Summary

  • Get-ChildItem -Name returns backslash-separated paths on PS5.1 Windows, causing generated manifest source/destination attributes to use \ instead of /
  • New-PlasterManifest.ps1: call .Replace('\', '/') on each filename before writing the source and destination attributes, in both the XML and JSON manifest paths
  • tests/New-PlasterManifest.Tests.ps1: removes the $IsWindows separator branch (which evaluated to $null/false on PS5.1 anyway) and hardcodes /, matching the now-normalised output on all platforms

Test plan

  • Run Pester suite on PS5.1 — AddContent parameter works passes
  • Run Pester suite on PS7 — no regression

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

Test Results

  4 files  284 suites   1m 19s ⏱️
243 tests 241 ✅ 2 💤 0 ❌
972 runs  964 ✅ 8 💤 0 ❌

Results for commit 4ab9644.

♻️ This comment has been updated with latest results.

Get-ChildItem -Name returns backslash-separated paths on PS5.1 Windows.
Manifest source/destination attributes now always use forward slashes for
cross-platform consistency. Updates the test fixture accordingly (removing
the $IsWindows separator branch, which was $null on PS5.1 anyway).
@HeyItsGilbert HeyItsGilbert force-pushed the fix/ps51-path-separator branch from 980aca1 to 4ab9644 Compare May 26, 2026 23:00
@HeyItsGilbert HeyItsGilbert merged commit 8e0e264 into main May 26, 2026
7 checks passed
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.

1 participant