Skip to content

Fix stale local images for moving tags like dev - #568

Merged
anisaoshafi merged 2 commits into
mainfrom
fix-moving-tag-pull
Oct 30, 2026
Merged

anisaoshafi merged 2 commits into
mainfrom
fix-moving-tag-pull

Conversation

@anisaoshafi

@anisaoshafi anisaoshafi commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

lstk start skipped the pull for any tag except latest when the image was already local.
Tags like dev, stable or 2026.10 move to newer builds on Docker Hub, but once one was pulled, later starts kept reusing that local copy, so users stayed on an old build without knowing.

Solution

Reuse a local image only when it can't change upstream: a full version like 2026.10.4 (optionally -bigdata, -amd64, -arm64) or a digest.
Every other tag is pulled on start; if the pull fails (e.g. offline), the local image is still used.
The tag is read from the final image name, so --image works the same way.

Image already local Before After
dev, stable, 2026.10, custom tags Reused (stale) Pulled
2026.10.4, digest Reused Reused
latest Pulled Pulled
Docs

When lstk starts an emulator, a local image is reused only if its tag is a full version (e.g. 2026.10.4) or a digest. Any other tag is pulled first to get the newest build, falling back to the local image if the pull fails. Offline users should use a full version tag or a digest to avoid the pull attempt. The default config.toml comments describe this.

Review

Human review advised: lstk now checks the registry on every start for tags that aren't a full version, which affects offline setups.

Resolves DEVX-1256

@anisaoshafi anisaoshafi added semver: patch docs: skip Pull request does not require documentation changes labels Oct 29, 2026
@anisaoshafi
anisaoshafi marked this pull request as ready for review October 29, 2026 17:09
@anisaoshafi
anisaoshafi requested review from a team and peter-smith-phd as code owners October 29, 2026 17:09
Comment thread internal/config/default_config.toml Outdated
@anisaoshafi
anisaoshafi merged commit e1394ac into main Oct 30, 2026
17 of 18 checks passed
@anisaoshafi
anisaoshafi deleted the fix-moving-tag-pull branch October 30, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes semver: patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants