Skip to content

Commit c2c41b8

Browse files
committed
[build] update windows dev environment script to properly format bazelrc file
previous code created utf-8-bom encoding which does not work
1 parent 1b66415 commit c2c41b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/dev-environment-setup.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,11 @@ if ($longPathSupport -eq 'Y' -or $longPathSupport -eq 'y')
150150
fsutil 8dot3name set 0
151151

152152
Write-Host "Set bazel output to C:/tmp instead of nested inside project directory"
153-
Set-Content -Path ".bazelrc.windows.local" -Value "startup --output_user_root=C:/tmp" -Encoding UTF8
153+
$currentDirectory = Get-Location
154+
$filePath = [System.IO.Path]::Combine($currentDirectory, "selenium/.bazelrc.windows.local")
155+
$text = "startup --output_user_root=C:/tmp"
156+
$encoding = New-Object System.Text.UTF8Encoding($false)
157+
[System.IO.File]::WriteAllText($filePath, $text, $encoding)
154158
}
155159

156160
$intelliJChoice = Read-Host "Do you want to install and setup IntelliJ (Y/N)"

0 commit comments

Comments
 (0)