Skip to content

fix: use CultureInfo ctor instead of Get-Culture -Name for PS5.1 compat#462

Merged
HeyItsGilbert merged 1 commit into
mainfrom
fix/ps51-get-culture-name
May 26, 2026
Merged

fix: use CultureInfo ctor instead of Get-Culture -Name for PS5.1 compat#462
HeyItsGilbert merged 1 commit into
mainfrom
fix/ps51-get-culture-name

Conversation

@HeyItsGilbert
Copy link
Copy Markdown
Member

Closes #459

Summary

  • Get-Culture -Name was added in PS6; on PS5.1 it throws a parameter binding error
  • Replaces the one call in tests/Get-PlasterManifestPathForCulture.Tests.ps1 with New-Object System.Globalization.CultureInfo("en-US"), matching the pattern already used by the other two tests in the same file

Test plan

  • Run Pester suite on PS5.1 — Get-PlasterManifestPathForCulture "returns the manifest for the specified culture" passes
  • Run Pester suite on PS7 — no regression

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

Test Results

  4 files  284 suites   1m 11s ⏱️
243 tests 235 ✅ 2 💤 6 ❌
972 runs  958 ✅ 8 💤 6 ❌

For more details on these failures, see this check.

Results for commit 570ae9a.

@HeyItsGilbert HeyItsGilbert merged commit 52c9085 into main May 26, 2026
5 of 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.

fix: Get-Culture -Name parameter not available in PS5.1

1 participant