Skip to content

Commit 5738e1f

Browse files
fix: escape PowerShell variable in cargo config append step (#56)
The $configPath: syntax is invalid PowerShell — the colon after the variable name is interpreted as a drive-qualifier. Wrap in ${} to delimit the variable name. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 562f7a6 commit 5738e1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/pipelines/templates-v2/job-build-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ jobs:
236236
replace-with = "WindowsTerminalCargo"
237237
"@
238238
Add-Content -Path $configPath -Value $registry -Encoding utf8NoBOM
239-
Write-Host "Updated $configPath:"
239+
Write-Host "Updated ${configPath}:"
240240
Get-Content $configPath
241241
displayName: Append Cargo registry config (CI only)
242242

0 commit comments

Comments
 (0)