mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-09-20 05:27:31 -07: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 ♻️
|
- name: Override Go ♻️
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
New-Item -Path ./bin -ItemType Directory
|
$goBin = $(Get-Command go).Source
|
||||||
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.19.4/go' -OutFile "$env:GOROOT/bin/go"
|
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.19.4/go' -OutFile "$goBin"
|
||||||
chmod a+x "$env:GOROOT/bin/go" 2>&1
|
chmod a+x $goBin 2>&1
|
||||||
|
go version
|
||||||
|
|
Loading…
Reference in a new issue