Skip to content

Bust docker cache for uv/opencode installs - #37

Closed
flavour wants to merge 1 commit into
chriswritescode-dev:mainfrom
flavour:fix/docker-tools-cachebust
Closed

Bust docker cache for uv/opencode installs#37
flavour wants to merge 1 commit into
chriswritescode-dev:mainfrom
flavour:fix/docker-tools-cachebust

Conversation

@flavour

@flavour flavour commented Dec 29, 2025

Copy link
Copy Markdown
Contributor

The OpenCode & UV versions in the released image aren't being updated.
This is especially annoying for OpenCode, e.g. I have removed by custom implementation of Agent Skills now that it is native.

This is 1 way of handling that...does mean a less nicely-layered image, but avoids needing to manually maintain pinned versions.

chriswritescode-dev added a commit that referenced this pull request Jan 11, 2026
Alternative approach to PR #37 - instead of busting cache on every build,
use git ls-remote to fetch latest version tags and pass them as build args.
Docker layer only rebuilds when tool versions actually change.

- Move uv install from base to runner stage alongside opencode
- Add UV_VERSION and OPENCODE_VERSION build args as cache keys
- Fetch versions via git ls-remote (no API rate limits)
- Log installed versions in build output for debugging

Ref: #37
@namanrajpal

Copy link
Copy Markdown
Contributor

This PR can be closed.
@chriswritescode-dev
Ref :
9851ec0

@flavour flavour closed this Jan 13, 2026
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.

2 participants