Skip to content

Avoid Windows tar drive-letter paths#312

Merged
ZhaoJiSen merged 1 commit into
devfrom
pr@dev@fix-windows-brand-assets-tar
May 29, 2026
Merged

Avoid Windows tar drive-letter paths#312
ZhaoJiSen merged 1 commit into
devfrom
pr@dev@fix-windows-brand-assets-tar

Conversation

@ZhaoJiSen
Copy link
Copy Markdown
Member

Git Bash on windows-latest expands RUNNER_TEMP to a drive-letter path. GNU tar treats paths containing a colon as remote archive syntax, so extracting the encrypted brand archive failed before the assets could be applied.

Constraint: The brand asset step runs with shell bash across macOS, Linux, and Windows runners
Constraint: Windows Git Bash paths such as D:... are unsafe for tar -xzf
Rejected: Keep using RUNNER_TEMP | tar misinterprets the drive letter as a remote host separator on Windows
Confidence: high
Scope-risk: narrow
Directive: Keep brand asset temporary archive paths relative unless the extraction command is made Windows-path aware
Tested: Local openssl decrypt plus tar extract plus apply-brand-assets smoke copied 10 assets using relative .brand-assets-tmp paths
Not-tested: Full GitHub Actions windows-latest build

Git Bash on windows-latest expands RUNNER_TEMP to a drive-letter path. GNU tar treats paths containing a colon as remote archive syntax, so extracting the encrypted brand archive failed before the assets could be applied.

Constraint: The brand asset step runs with shell bash across macOS, Linux, and Windows runners
Constraint: Windows Git Bash paths such as D:\... are unsafe for tar -xzf
Rejected: Keep using RUNNER_TEMP | tar misinterprets the drive letter as a remote host separator on Windows
Confidence: high
Scope-risk: narrow
Directive: Keep brand asset temporary archive paths relative unless the extraction command is made Windows-path aware
Tested: Local openssl decrypt plus tar extract plus apply-brand-assets smoke copied 10 assets using relative .brand-assets-tmp paths
Not-tested: Full GitHub Actions windows-latest build
Co-authored-by: OmX <omx@oh-my-codex.dev>
@fit2bot fit2bot requested a review from a team May 29, 2026 05:11
@ZhaoJiSen ZhaoJiSen merged commit 451acb3 into dev May 29, 2026
7 of 8 checks passed
@ZhaoJiSen ZhaoJiSen deleted the pr@dev@fix-windows-brand-assets-tar branch May 29, 2026 05:13
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.

2 participants