Closed markdumay closed 2 weeks ago
not listed in the 13 and 14 readmes as "installed"
using setup-go will succeed and report 1.22.2 for all versions
name: Go installation check (fail)
on:
workflow_dispatch:
jobs:
check:
strategy:
matrix:
os:
- macos-14
- macos-13
- macos-12
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ">1.0.0"
- name: RUN Go
run: go version
Thanks @irkode, you're right. After some more careful reading, the Go binary is indeed only available as precached tool in both runner images. I'll close this issue as solved.
Description
With the recent switch from
macos-12
tomacos-14
when using themacos-latest
tag, it appears the Go binary cannot longer be found. Themacos-13
image also appears to be affected. The docs (e.g. macos-13, macos-14-arm64) still suggest multiple versions of Go should be preinstalled.NB: the code has not been tested with the macOS large runners due to account / billing limitations.
Platforms affected
Runner images affected
Image version and build link
2.316.0
, see https://github.com/markdumay/gha-hugo-macos/actions/runs/8865382577Is it regression?
No
Expected behavior
Running
go version
from within the workflow should return a valid Go version, e.g.go version go1.21.9 darwin/amd64
.Actual behavior
On
macos-13
andmacos-14
, runninggo version
returns an error:Repro steps
.github/workflows/fail.yml
and copy the following code:Go installation check (fail)
in the actions overview.