Repository navigation
core: pin latest container and Git releases - #13754
Merged
Merged
Conversation
tiborvass
force-pushed
the
codex/git-latest-release-pinning
branch
2 times, most recently
from
July 28, 2026 17:00
32f987f to
9e74e0f
Compare
tiborvass
force-pushed
the
codex/git-latest-release-pinning
branch
from
August 3, 2026 15:41
9e74e0f to
02fac36
Compare
tiborvass
marked this pull request as ready for review
August 3, 2026 15:41
grouville
self-requested a review
August 3, 2026 16:13
sipsma
reviewed
Aug 4, 2026
sipsma
left a comment
Contributor
There was a problem hiding this comment.
Codex identified these issues and drafted the comments; Erik reviewed and approved them for submission.
grouville
force-pushed
the
codex/git-latest-release-pinning
branch
from
August 7, 2026 00:09
02fac36 to
784b89a
Compare
vito
reviewed
Aug 7, 2026
grouville
force-pushed
the
codex/git-latest-release-pinning
branch
from
August 10, 2026 21:55
0d2f79e to
9273210
Compare
Member
|
cc @vito ready for review once again 🙏 |
tiborvass
force-pushed
the
codex/git-latest-release-pinning
branch
2 times, most recently
from
August 14, 2026 16:40
50f352c to
7b00c71
Compare
tiborvass
force-pushed
the
codex/git-latest-release-pinning
branch
6 times, most recently
from
August 25, 2026 12:25
2833741 to
54fa6e9
Compare
tiborvass
force-pushed
the
codex/git-latest-release-pinning
branch
2 times, most recently
from
August 25, 2026 14:51
5656ddd to
7f1bfa7
Compare
tiborvass
force-pushed
the
codex/git-latest-release-pinning
branch
3 times, most recently
from
August 25, 2026 17:48
59af030 to
afc3a8a
Compare
shykes
approved these changes
Aug 25, 2026
tiborvass
force-pushed
the
codex/git-latest-release-pinning
branch
6 times, most recently
from
August 26, 2026 13:51
af8e23c to
26395e5
Compare
Parse release tags with optional v prefixes, one to three numeric components, and leading zeroes. Ignore prereleases when selecting the greatest version. Prefer complete spellings for exact incomplete aliases. When equivalent candidates remain, accept Git aliases only when they resolve to the same SHA, then prefer less padding, complete components, no build metadata, and a v prefix. Reject different or unavailable targets as ambiguous. Support monorepo tag prefixes before repository-wide tags and HEAD. Fall back to the literal latest OCI tag when no release exists. List registry tags with authentication, bounded pagination, and response validation. Signed-off-by: Tibor Vass <[email protected]>
Represent mutable selections and immutable resolutions with git-latest, git-sha, oci-latest, and oci-sha operations. Keep required inputs positional, named options explicit, and results string-valued. Reject v1 lockfiles instead of migrating them. Expose GitRepository.latest and use it for unversioned module sources. Select releases for bare OCI addresses while keeping explicit tags and refs exact. Gate both behaviors at beta.11. Store root OCI digests without platform identity. Make dagger update refresh selections before their immutable resolutions and surface a warning when an existing Git tag changes commits. Reject unknown lock options with actionable errors. Signed-off-by: Tibor Vass <[email protected]>
Resolve explicit module dependency updates without reading from or writing to the consuming workspace lockfile. Preserve the declared source selector while refreshing or replacing its TOML pin. Pass existing module configuration pins directly through Git resolution so stale workspace entries cannot override them during normal module loading. Signed-off-by: Tibor Vass <[email protected]>
Use bare BusyBox and markdownlint image references so their default image selections use latest-release locking. Keep explicitly configured markdownlint versions exact. Refresh the beta.10-compatible dagger.lock and add dagger.lock2 in the new four-operation format for branch-engine bootstrap. Signed-off-by: Tibor Vass <[email protected]>
Regenerate SDK clients and API references for GitRepository.latest and bare OCI release selection. Refresh generated docs module bindings after the main-branch changes. Signed-off-by: Tibor Vass <[email protected]>
tiborvass
force-pushed
the
codex/git-latest-release-pinning
branch
from
August 26, 2026 18:34
26395e5 to
6980887
Compare
The snapshot test module was merged without its generated Go client, so Go linting cannot resolve its internal Dagger package. Remove the unused module to restore linting. Signed-off-by: Tibor Vass <[email protected]>
eunomie
added a commit
to dagger/python-sdk
that referenced
this pull request
Aug 27, 2026
beta.11 rewrites the workspace lockfile format: `git.ref` and `container.from` entries become the `git-latest`/`git-sha`/`oci-sha` operations `dagger/dagger#13754` introduced, results are plain strings, and OCI digests drop their platform identity. Locks in the old shape are rejected rather than migrated, so the lock is rewritten by hand and then normalized with `dagger update`, which refreshed the `ghcr.io/astral-sh/uv:python3.14-alpine` digest upstream had retagged. Both git pins are unchanged. Regenerating `runtime` picks up the schema this engine actually serves: `Workspace.withDirectory` is new, `GitRepository.latestVersion` is now `GitRepository.latest`, and `Workspace.withNewDirectory` documents that it replaces. Signed-off-by: Yves Brissaud <[email protected]>
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement #13464 by adding package-manager-style latest-release selection
for Git repositories, module installations, and OCI images.
A latest release is selected once and pinned in
dagger.lock. Normaloperations reuse the pin;
dagger updaterefreshes it.Release selection
For Git:
GitRepository.latestselects the greatest eligible release tagFor OCI images:
alpineselects the greatest eligible release tagalpine:latestoralpine:3.22remains exactlatesttag when no release existsRelease comparison accepts common spellings such as
v1.2.3,1.2, and24.04. Git rejects equivalent tags such asv1.2,1.2.0, andv1.2.0as ambiguous, while OCI preserves the conventional meaning ofincomplete image tags.
The bare-image behavior is version-gated so older API clients continue to
interpret
alpineasalpine:latest.Lockfile format
This introduces the v2 lockfile format with four core resolver operations:
git-latestgit-shaoci-latestoci-shaOptional inputs are stored as named key-value pairs. They include:
includePrereleasesfor latest-release selectiontagPrefixfor monorepo Git modulesprotocolandinsecureSkipTLSVerifyfor OCI registriesValues are always single strings. Container pins use the root OCI descriptor
digest and are therefore platform-independent.
Version 1 lockfiles are not supported by this implementation and produce an
explicit error.
Updating
dagger updaterefreshes existing entries in dependency order:git-latestandoci-latestselections.git-shaandoci-shaentries.If an existing
refs/tags/...Git tag resolves to a different commit,dagger updateemits a warning containing the previous and current SHAs.Module dependency declarations are orthogonal to workspace lock updates.
dagger updateonly refreshesdagger.lock; it does not change versions orpins declared in
dagger-module.toml.To advance a declared module dependency, use
dagger module deps update <name>. That command bypasses workspace lock readsand writes so it can update the dependency declaration. Normal module loading
continues to use the workspace lock.
Repository updates
This PR also opts Dagger's default BusyBox and Markdownlint images into
latest-release selection and updates the repository lockfile accordingly.
How to test
Run the focused unit tests:
Run the lockfile integration tests against the development engine:
For a manual Git test:
v0.1.0tag.dagger.lock.v0.2.0tag.v0.1.0.dagger update.git-latestselectsv0.2.0andgit-shacontains its commit.dagger-module.tomlis unchanged.For a manual OCI test, use both forms:
{ container { release: from(address: "busybox") { imageRef } explicitLatest: from(address: "busybox:latest") { imageRef } } }After running the query,
dagger.lockshould contain:oci-latestandoci-shaentries forbusyboxoci-shaentry forbusybox:latestRunning the same query should reuse those pins. Running
dagger updateshould refresh the selected tag and digests.