Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(dockerfile): bump build stage to golang:1.25-alpine#3

Merged
enclave-projects merged 1 commit into
mainfrom
devin/1778750848-fix-dockerfile-go-version
May 14, 2026
Merged

fix(dockerfile): bump build stage to golang:1.25-alpine#3
enclave-projects merged 1 commit into
mainfrom
devin/1778750848-fix-dockerfile-go-version

Conversation

@devin-ai-integration

Copy link
Copy Markdown

Summary

The first post-merge run of the new Build and publish image workflow failed with:

#31 [linux/amd64 build 5/5] RUN make go-generate build ENABLE_VIPS=true
#31 0.093 go: ../go.mod requires go >= 1.25.0 (running go 1.24.13; GOTOOLCHAIN=local)
#31 0.094 make: *** [../.make/go.mk:102: bin/opencloud] Error 1
ERROR: failed to build: failed to solve: process "/bin/sh -c make go-generate build ENABLE_VIPS=true" did not complete successfully: exit code: 2

Root cause: go.mod declares go 1.25.0 (in line with upstream), but the build stage of Dockerfile is pinned to golang:1.24-alpine. Alpine's golang image defaults to GOTOOLCHAIN=local, so the toolchain does not auto-download the required version and the build hard-fails.

This PR bumps the build base from golang:1.24-alpine to golang:1.25-alpine to match the declared minimum. Single-line change.

Review & Testing Checklist for Human

Green-risk; one item:

  • Confirm the docker workflow goes green for both linux/amd64 and linux/arm64 after this lands on main. The workflow runs automatically on push, so no manual step is needed.

Notes

  • Upstream opencloud-eu/opencloud:main has the same out-of-sync Dockerfile, but upstream's CI runs on Woodpecker, not on this Dockerfile, so they don't see the failure. Worth a courtesy PR upstream if you'd like — happy to send one.
  • This does not change anything about the runtime image (alpine:3.23 + ffmpeg + vips), so the deploy guide in DEPLOYMENT.md and the video-thumbnail feature both remain unchanged.

Link to Devin session: https://app.devin.ai/sessions/620d4cc7fd8b46a386213618cd65b662

The build stage was pinned to golang:1.24-alpine while go.mod has
required go 1.25.0 since the upstream toolchain bump. Alpine's go
defaults to GOTOOLCHAIN=local so it cannot auto-download the
newer toolchain, which broke the container build with:

    go: ../go.mod requires go >= 1.25.0 (running go 1.24.13;
        GOTOOLCHAIN=local)
    make: *** [../.make/go.mk:102: bin/opencloud] Error 1

Bumping the build base to golang:1.25-alpine matches the project's
declared minimum and lets the build run on both linux/amd64 and
linux/arm64 in the GitHub Actions image workflow.

Co-Authored-By: Pranjal Sharma <[email protected]>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@enclave-projects enclave-projects merged commit d16e40c into main May 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant