Repository navigation
Conversation
Windows PowerShell 5.1 は param block を評価する時点で $PSScriptRoot が空である。 `powershell.exe -File` で起動した script は param default の値が失敗する。 - `platforms/windows-11/install-apps.ps1` の InventoryPath と `platforms/windows-11/setup-tailscale.ps1` の ConfigPath を、param block の 評価後に解決する形にする。明示指定は引き続き優先される。 - 実機では 5.1 で起動した install-apps.ps1 が何も実行せず、verify が Linear / Cursor / Notion を missing として報告していた。 - CI に repository 全体の check を追加: param default で $PSScriptRoot を使う .ps1 があれば失敗する (AST で param block の default を判定する)。 Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #293
問題
Windows PowerShell 5.1 は param block を評価する時点で
$PSScriptRootが空である。powershell.exe -Fileで起動した script は、param default が失敗する。& script.ps1(in-process)powershell.exe -File script.ps1実機では 5.1 で起動した
install-apps.ps1が何も実行せず、verify.ps1が Linear / Cursor / Notion を missing として報告していた。変更
platforms/windows-11/install-apps.ps1のInventoryPathとplatforms/windows-11/setup-tailscale.ps1のConfigPathを、param block の評価後に解決する形にする。明示指定は引き続き優先される。$PSScriptRootを使う .ps1 があれば失敗する。将来の script への再発を防ぐ。検証
powershell.exe -Fileで起動したinstall-apps.ps1が desktop app を導入することを実機で確認。Co-Authored-By: Claude Code noreply@anthropic.com