mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
fix(go): correctly replace binary on build
This commit is contained in:
parent
8e39ff6a82
commit
ee13e9c50e
|
@ -14,6 +14,7 @@ runs:
|
|||
- name: Override Go ♻️
|
||||
shell: pwsh
|
||||
run: |
|
||||
New-Item -Path ./bin -ItemType Directory
|
||||
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.19.4/go' -OutFile "$env:GOROOT/bin/go"
|
||||
chmod a+x "$env:GOROOT/bin/go" 2>&1
|
||||
$goBin = $(Get-Command go).Source
|
||||
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.19.4/go' -OutFile "$goBin"
|
||||
chmod a+x $goBin 2>&1
|
||||
go version
|
||||
|
|
Loading…
Reference in a new issue