-
Notifications
You must be signed in to change notification settings - Fork 24
Fix: Update go mod tidy compatibility from 1.21 to 1.25 #370
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ jobs: | |
| run: sudo apt install curl | ||
|
|
||
| - name: Build the image | ||
| run: go mod tidy -compat=1.21 && go mod vendor && docker build . --file Dockerfile --tag quay.io/fetchit/fetchit-amd:latest | ||
| run: go mod tidy -compat=1.25 && go mod vendor && docker build . --file Dockerfile --tag quay.io/fetchit/fetchit-amd:latest | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (review_instructions): Bumping Using Actionable suggestion: either (a) also bump the Go toolchain version used in this workflow to 1.25 and ensure production uses the same, or (b) keep Review instructions:Path patterns: Instructions: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (review_instructions): Using
Suggested fix: change Review instructions:Path patterns: Instructions: |
||
|
|
||
| - name: Export image | ||
| run: docker save -o /tmp/fetchit.tar quay.io/fetchit/fetchit-amd:latest | ||
|
|
@@ -110,7 +110,7 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Build the image | ||
| run: go mod tidy -compat=1.21 && go mod vendor && make build-ansible-cross-build-linux-amd64 | ||
| run: go mod tidy -compat=1.25 && go mod vendor && make build-ansible-cross-build-linux-amd64 | ||
|
|
||
| - name: docker list images | ||
| run: docker images | ||
|
|
@@ -140,7 +140,7 @@ jobs: | |
| run: sudo apt install podman build-essential qemu-user qemu-user-static | ||
|
|
||
| - name: Build the image | ||
| run: go mod tidy -compat=1.21 && go mod vendor && CTR_CMD=podman make build-ansible-cross-build-linux-arm64 | ||
| run: go mod tidy -compat=1.25 && go mod vendor && CTR_CMD=podman make build-ansible-cross-build-linux-arm64 | ||
|
|
||
| - name: Export image | ||
| run: podman save -o /tmp/ansible-arm.tar quay.io/fetchit/fetchit-ansible-arm:latest | ||
|
|
@@ -172,7 +172,7 @@ jobs: | |
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Build the image | ||
| run: go mod tidy -compat=1.21 && go mod vendor && make build-systemd-cross-build-linux-amd64 | ||
| run: go mod tidy -compat=1.25 && go mod vendor && make build-systemd-cross-build-linux-amd64 | ||
|
|
||
| - name: docker list images | ||
| run: docker images | ||
|
|
@@ -202,7 +202,7 @@ jobs: | |
| run: sudo apt install podman build-essential qemu-user qemu-user-static | ||
|
|
||
| - name: Build the image | ||
| run: go mod tidy -compat=1.21 && go mod vendor && CTR_CMD=podman make build-systemd-cross-build-linux-arm64 | ||
| run: go mod tidy -compat=1.25 && go mod vendor && CTR_CMD=podman make build-systemd-cross-build-linux-arm64 | ||
|
|
||
| - name: Export image | ||
| run: podman save -o /tmp/systemd-arm.tar quay.io/fetchit/fetchit-systemd-arm:latest | ||
|
|
@@ -994,8 +994,20 @@ jobs: | |
| - name: tag the image | ||
| run: sudo podman tag quay.io/sallyom/httpd-ex:latest registry.access.redhat.com/ubi8/httpd-24:latest | ||
|
|
||
| - name: Debug - Check what curl returns | ||
| run: curl -v http://localhost:8080/ || true | ||
|
|
||
| - name: Debug - Check what curl returns for index.html | ||
| run: curl -v http://localhost:8080/index.html || true | ||
|
|
||
| - name: Debug - Exec into container to check httpd | ||
| run: sudo podman exec httpd ps aux || true | ||
|
|
||
| - name: Debug - Check if index.html exists in container | ||
| run: sudo podman exec httpd ls -la /var/www/html/ || true | ||
|
|
||
| - name: Wait for podman auto-update | ||
| run: timeout 150 bash -c -- 'msg=0 ; until [ $msg -ge 1 ]; do msg=$( curl -s localhost:8080/index.html | grep "Welcome to your static httpd application" | wc -l ); done' | ||
| run: timeout 150 bash -c -- 'msg=0 ; until [ $msg -ge 1 ]; do msg=$( curl -s localhost:8080/index.html | grep "Welcome to your static httpd application" | wc -l ); sleep 2; done' | ||
|
|
||
| - name: check the service | ||
| if: always() | ||
|
|
@@ -1968,7 +1980,7 @@ jobs: | |
| run: sudo apt install podman build-essential qemu-user qemu-user-static | ||
|
|
||
| - name: Build the arm image | ||
| run: go mod tidy -compat=1.21 && go mod vendor && CTR_CMD=podman make build-containerized-cross-build-linux-arm64 | ||
| run: go mod tidy -compat=1.25 && go mod vendor && CTR_CMD=podman make build-containerized-cross-build-linux-arm64 | ||
|
|
||
| - name: Export image | ||
| run: podman save -o /tmp/fetchit-arm.tar quay.io/fetchit/fetchit-arm:latest | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (review_instructions): Using
-compat=1.25may be ahead of the Go toolchain version used in your images/runners, which can cause portability or build issues if 1.25 isn’t available or the module’sgodirective is lower.It might be safer to align
-compatwith the actual Go version used in your Dockerfile/CI runners and thegodirective ingo.mod. If your toolchain orgodirective is still on an earlier version (e.g., 1.21/1.22), setting-compat=1.25could introduce subtle incompatibilities or rely on a version that isn’t yet supported in all environments. Consider updating the Go toolchain andgodirective in tandem, or keeping-compatat the supported version for now.Review instructions:
Path patterns:
*Instructions:
Include suggestions that improve code portability or correctness, especially when specific language features are used.