Skip to content

Commit e7754b7

Browse files
committed
Use actions/setup-go@v4 for Linux build job
Unfortunately the latest v5 version of the actions/setup-go action used to set up the Go programming language in the runner machine has a dependency on a higher version of glibc than is provided by the Linux container. For this reason, the workflow is configured to use actions/setup-go@v4 for the Linux build job. We will receive pull requests from Dependabot offering to update this outdated action dependency for at each subsequent major version release of the action (which are not terribly frequent). We must decline the bump of the action in that specific step, but accept the bumps of all other usages of the action in the workflows. Dependabot remembers when you decline a bump so this should not be too bothersome.
1 parent 3d25111 commit e7754b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: .github/workflows/build.yml

+8
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,18 @@ jobs:
307307
python-version: '3.11.x'
308308

309309
- name: Install Go
310+
if: fromJSON(matrix.config.container) == null
310311
uses: actions/setup-go@v5
311312
with:
312313
go-version: ${{ env.GO_VERSION }}
313314

315+
- name: Install Go
316+
# actions/setup-go@v5 has dependency on a higher version of glibc than available in the Linux container.
317+
if: fromJSON(matrix.config.container) != null
318+
uses: actions/setup-go@v4
319+
with:
320+
go-version: ${{ env.GO_VERSION }}
321+
314322
- name: Install Taskfile
315323
uses: arduino/setup-task@v1
316324
with:

0 commit comments

Comments
 (0)