-
Notifications
You must be signed in to change notification settings - Fork 8
fix: pin OpenCode CLI version in Kubeflow Dockerfile #225
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 1 commit
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -50,8 +50,11 @@ RUN curl -fsSL https://bun.sh/install | bash -s "bun-v${BUN_VERSION}" && \ | |||||||||
| rm -rf /root/.bun | ||||||||||
|
|
||||||||||
| # Install OpenCode CLI | ||||||||||
| # Pin version to ensure reproducible builds. Update by changing OPENCODE_VERSION. | ||||||||||
|
||||||||||
| # Pin version to ensure reproducible builds. Update by changing OPENCODE_VERSION. | |
| # Pin version to ensure reproducible builds. | |
| # NOTE: CI overrides this default with `--build-arg OPENCODE_VERSION=...` in | |
| # `.github/workflows/pk-opencode.yml`, so upgrades must keep both values in sync. |
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.
OPENCODE_VERSIONis now hardcoded here as well as indocker/kubeflow/Dockerfile(ARG default). This duplication can drift and reintroduce the “silent version change” problem during upgrades. Consider definingOPENCODE_VERSIONonce (e.g., as a workflow-level env var) and referencing it from the build command, and ensure the Dockerfile default is kept in sync for local builds.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.
Acknowledged. This duplication pattern is consistent with how
S6_OVERLAY_VERSIONis handled in the same workflow and Dockerfile — it's a deliberate choice that keeps local builds working (using the ARG default) while CI can override. The comment fix in the latest commit now explicitly warns that both values must be kept in sync, which mitigates the drift risk.