Skip to content

fix(docker): bump .go-version to 1.24.6 #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dsotirakis
Copy link

What happened:

This PR most likely broke the latest version of the action. See the logs below for more info.

Logs
Run ./.github/actions/actions-oidc-debugger
  with:
    audience: https://github.com/grafana
Building docker image
  Dockerfile for action: '/home/runner/work/dsotirakis-test-repo/dsotirakis-test-repo/./.github/actions/actions-oidc-debugger/Dockerfile'.
  /usr/bin/docker build -t ac8f72:49d04ed9ee2a4845a5ebd303b1e5f8ff -f "/home/runner/work/dsotirakis-test-repo/dsotirakis-test-repo/./.github/actions/actions-oidc-debugger/Dockerfile" "/home/runner/work/dsotirakis-test-repo/dsotirakis-test-repo/.github/actions/actions-oidc-debugger"
  #0 building with "default" instance using docker driver
  
  #1 [internal] load build definition from Dockerfile
  #1 transferring dockerfile: 250B done
  #1 DONE 0.0s
  
  #2 [internal] load metadata for docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
  #2 ...
  
  #3 [auth] library/alpine:pull token for registry-1.docker.io
  #3 DONE 0.0s
  
  #2 [internal] load metadata for docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
  #2 DONE 1.0s
  
  #4 [internal] load .dockerignore
  #4 transferring context: 138B done
  #4 DONE 0.0s
  
  #5 [internal] load build context
  #5 transferring context: 99.33kB done
  #5 DONE 0.0s
  
  #6 [1/4] FROM docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
  #6 resolve docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 0.0s done
  #6 sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 9.22kB / 9.22kB done
  #6 sha256:eafc1edb577d2e9b458664a15f23ea1c370214193226069eb22921169fc7e43f 1.02kB / 1.02kB done
  #6 sha256:9234e8fb04c47cfe0f49931e4ac7eb76fa904e33b7f8576aec0501c085f02516 581B / 581B done
  #6 sha256:9824c27679d3b27c5e1cb00a73adb6f4f8d556994111c12db3c5d61a0c843df8 0B / 3.80MB 0.1s
  #6 sha256:9824c27679d3b27c5e1cb00a73adb6f4f8d556994111c12db3c5d61a0c843df8 3.80MB / 3.80MB 0.1s done
  #6 extracting sha256:9824c27679d3b27c5e1cb00a73adb6f4f8d556994111c12db3c5d61a0c843df8
  #6 extracting sha256:9824c27679d3b27c5e1cb00a73adb6f4f8d556994111c12db3c5d61a0c843df8 0.1s done
  #6 DONE 0.3s
  
  #7 [2/4] COPY .go-version .go-version
  #7 DONE 0.0s
  
  #8 [3/4] RUN apk add --no-cache go=$(cat .go-version)-r0
  #8 0.171 fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz
  #8 0.242 fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz
  #8 0.583 ERROR: unable to select packages:
  #8 0.587   go-1.24.6-r0:
  #8 0.587     breaks: world[go=1.24.4-r0]
  #8 ERROR: process "/bin/sh -c apk add --no-cache go=$(cat .go-version)-r0" did not complete successfully: exit code: 1
  ------
   > [3/4] RUN apk add --no-cache go=$(cat .go-version)-r0:
  0.171 fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz
  0.242 fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz
  0.583 ERROR: unable to select packages:
  0.587   go-1.24.6-r0:
  0.587     breaks: world[go=1.24.4-r0]
  ------
  Dockerfile:5
  --------------------
     3 |     COPY .go-version .go-version
     4 |     
     5 | >>> RUN apk add --no-cache go=$(cat .go-version)-r0
     6 |     
     7 |     COPY . .
  --------------------
  ERROR: failed to build: failed to solve: process "/bin/sh -c apk add --no-cache go=$(cat .go-version)-r0" did not complete successfully: exit code: 1

.go-version wasn't updated correctly and caused the latest version of this action to break.

Expected behavior

Running docker build . should build the image without issues. After the fix, the image is being built without issues.

Fixes: #30

@dsotirakis
Copy link
Author

also - optional but the base image can be updated to: alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1. please let me know if you'd like me to add this change as part of the current PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latest release breaks
1 participant