Skip to content

Fix build-breaking bugs in psakeFile.ps1#46

Merged
tablackburn merged 1 commit intomainfrom
fix/build-script-bugs
Apr 9, 2026
Merged

Fix build-breaking bugs in psakeFile.ps1#46
tablackburn merged 1 commit intomainfrom
fix/build-script-bugs

Conversation

@tablackburn
Copy link
Copy Markdown
Contributor

Summary

  • Wrap Get-Content in parentheses to prevent file lock conflict when reading and writing the same file in a pipeline (line 111)
  • Use .Contains() instead of .ContainsKey() for OrderedDictionary returned by ConvertFrom-Yaml (line 139)

Test plan

  • Run pwsh -Command "./build.ps1 -Bootstrap" and verify it completes successfully

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings April 8, 2026 23:21
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 8, 2026

Deploy Preview for psake ready!

Name Link
🔨 Latest commit 3246750
🔍 Latest deploy log https://app.netlify.com/projects/psake/deploys/69d82f6377083600089a11b7
😎 Deploy Preview https://deploy-preview-46--psake.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes two build-breaking issues in the psake-based build automation script used to generate Docusaurus content for the psake documentation site.

Changes:

  • Prevents a read/write file-lock conflict when rewriting generated MDX files by fully reading file contents before piping to Set-Content.
  • Fixes a runtime error when syncing Frontmatter CMS choices by using OrderedDictionary.Contains() instead of ContainsKey() for YAML-derived objects.

- Wrap Get-Content in parentheses to prevent file lock conflict when
  reading and writing the same file in a pipeline
- Use .Contains() instead of .ContainsKey() for OrderedDictionary
  returned by ConvertFrom-Yaml

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tablackburn tablackburn force-pushed the fix/build-script-bugs branch from b53a4ce to 3246750 Compare April 9, 2026 22:59
@tablackburn tablackburn merged commit 56f7002 into main Apr 9, 2026
8 checks passed
@tablackburn tablackburn deleted the fix/build-script-bugs branch April 9, 2026 23:08
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