Repository navigation
fix: core pins session by range, not exactly - #132
Merged
Merged
Conversation
The one thing from #131 that did not land: the squash took the tree before the revert, so core still pins session at an exact version. That matters because core's version is the engine release, so it cannot be republished on its own cadence — and an exact pin means every session release needs a core republish there is often no version for. Reproduced against real npmjs: [email protected] pinning session 1.0.0-beta.1 next to a scope on beta.2 installs both, node_modules/@dagger.io/session -> 1.0.0-beta.2 node_modules/@dagger.io/core/node_modules/@dagger.io/session -> 1.0.0-beta.1 and with a range the same install resolves to one. ^1.0.0-beta.2 matches beta.2, beta.3, 1.0.0 and 1.0.1 by semver, so core follows a session release without moving. Signed-off-by: Tom Chauveau <[email protected]>
TomChv
force-pushed
the
fix/core-session-range
branch
from
November 10, 2026 13:37
84168b3 to
4f6924b
Compare
TomChv
added a commit
that referenced
this pull request
Nov 17, 2026
ENGINE_VERSION lives in `@dagger.io/session` — provisioning/bin.ts passes it to the CLI as `--version`, so it is the session layer that decides which release a scope's session is told to serve. Moving the pairing to beta.27 therefore changes a published package's contents, and the published `@dagger.io/[email protected]` bakes `v1.0.0-beta.25`. Left alone, a remoteCoreLib scope would have resolved beta.27 bindings from core against a session asking the engine for beta.25's view of the schema — which beta.26's identifier rename makes two different spellings of the same API. All four move together because `release` publishes them at one version, and the exact inter-layer pins move with them: `[email protected]` naming `[email protected]` would resolve the old session beside the new one. core's pin stays `^1.0.0-beta.2`, which admits beta.3 — the reason #132 made it a range rather than an exact version. Signed-off-by: Tom Chauveau <[email protected]>
TomChv
added a commit
that referenced
this pull request
Nov 19, 2026
* chore: pair with engine v1.0.0-beta.27 Not a version string this time. beta.26 reworked how the schema spells identifiers, so the bindings move by 746 lines — 53 of them case-only renames (`insecureSkipTLSVerify` → `insecureSkipTlsVerify`, enum wire values `"Default"` → `"DEFAULT"`) — and `Client.formatIdentifiers` moves onto a new `Naming` object. The same rework renamed the types a dependency contributes, so this module itself stopped loading: `sdk-helpers` prefixes them `SDKHelpers` now, where it was `SdkHelpers`. The three signatures naming `SdkHelpersDangConfig` move with it, and that is a hard switch — the new name is unresolved on beta.25, the old one on beta.26+. The floor stays beta.18, measured rather than assumed: a module generated here loads and runs on beta.26 and beta.25, including a call sending a renamed enum wire value, because the session is told to serve this release's view and the engine answers in it. library/VENDOR.md records the delta. beta.26 is skipped as a pairing of its own; the current release supersedes it. Signed-off-by: Tom Chauveau <[email protected]> * library: the layers go to 1.0.0-beta.3 with the engine release ENGINE_VERSION lives in `@dagger.io/session` — provisioning/bin.ts passes it to the CLI as `--version`, so it is the session layer that decides which release a scope's session is told to serve. Moving the pairing to beta.27 therefore changes a published package's contents, and the published `@dagger.io/[email protected]` bakes `v1.0.0-beta.25`. Left alone, a remoteCoreLib scope would have resolved beta.27 bindings from core against a session asking the engine for beta.25's view of the schema — which beta.26's identifier rename makes two different spellings of the same API. All four move together because `release` publishes them at one version, and the exact inter-layer pins move with them: `[email protected]` naming `[email protected]` would resolve the old session beside the new one. core's pin stays `^1.0.0-beta.2`, which admits beta.3 — the reason #132 made it a range rather than an exact version. Signed-off-by: Tom Chauveau <[email protected]> * chore: move the pairing on to v1.0.0-beta.28 beta.28 released while this branch was still pointed at beta.27, and a pairing one release behind puts `packager:library-bindings/stale` red on whatever engine people actually run. It costs almost nothing on top of beta.27: the bindings move by 14 lines and every one is a doc comment — abbreviated SHAs now expand by fetching the refs a remote advertises, and a workspace mount is editable rather than read-only, with `withoutMount` to remove it. No signature, symbol or enum value moves, and `SDKHelpers` still resolves, so beta.26's hard switch is not re-crossed. beta.27 is skipped as a pairing of its own. It released before the core package landed, so nothing was ever published against it — the facade's bounded range is `>=1.0.0-beta.28 <1.0.0-beta.29` and core's first publish will be beta.28's. Signed-off-by: Tom Chauveau <[email protected]> * chore: beta.28's non-null type patterns, and the fixtures the pairing missed Two things the suite caught that the bindings diff did not. beta.28 requires a type pattern to name the non-null type its arm binds: `err: GraphQLError =>` is now `err: GraphQLError! =>`. Every generated entrypoint carries one in the dispatcher's rescue, so this was 132 of the 91 failed checks — the template, its golden fixture and the two assertions that pin its text move together, along with four rescue arms in this repo's own modules. The fixture manifests were still on beta.25. `fixtureEngineVersionCheck` exists precisely for this — its docstring records three runtime fixtures sitting at beta.9 and four more at beta.7 through a bump nobody noticed missing them — and it is a guard, not a generator: every pairing since beta.23 has moved these 23 files by hand, and beta.27 did not. Signed-off-by: Tom Chauveau <[email protected]> * chore: sdk-helpers v1.0.12, which loads on beta.28 The 90 failed checks were not this repo's code: beta.28 requires a type pattern to name the non-null type its arm binds, and `[email protected]` still writes `error: Error =>`, so the dependency itself refuses to load and every check that reaches it fails with the engine's advice text rather than anything about the SDK. `v1.0.12` loads on beta.27 and beta.28 both, measured against a throwaway module naming it. Nothing this repo calls moved across those four releases — the module's own parse gate resolves every helpers type and field it names. Signed-off-by: Tom Chauveau <[email protected]> * chore: the two things beta.28 and sdk-helpers v1.0.12 broke in the fixtures `generate-keeps-engine-pin-check` and `generate-preserves-manifest-check` both assert that regenerating leaves a manifest alone. sdk-helpers v1.0.12 carries "write TOML manifests without indentation", so re-emitting a committed fixture produced the same values with different bytes and the workspace reported a write. The 26 TypeScript fixture manifests are re-emitted in the form the builder now writes; only table bodies move, so the `^engineVersion` match that tells a pre-1.0 pin from a 1.0 one is untouched. `remote-entrypoint-replaced-check` named `sdk-helpers/entrypoint@main`, a subdirectory that exists at no ref of that repo. Engines before beta.28 never looked, so the check passed on a path that was never there; beta.28 content-hashes an entrypoint source while the workspace loads and fails on the missing directory. Pointed at the repo root, which is a Dang module, and pinned to a tag so it cannot rot with someone else's default branch again. Signed-off-by: Tom Chauveau <[email protected]> * chore: repoint the last two dead remote entrypoint sources `dang-config-check` names `sdk-helpers/entrypoint@main` twice for the same reason `remote-entrypoint-replaced-check` did, and fails the same way on beta.28: the subdirectory exists at no ref, and content-hashing an entrypoint source while the workspace loads now stats it. Signed-off-by: Tom Chauveau <[email protected]> --------- Signed-off-by: Tom Chauveau <[email protected]>
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.
The one thing from #131 that did not land. The squash took the tree before the revert, so
library/src/core/package.jsonstill pins session at an exact version.It matters because core's version is the engine release, so it cannot be republished on its own cadence. An exact pin means every session release needs a core republish that there is often no version for —
1.0.0-beta.25is already taken.Reproduced against real npmjs rather than reasoned about.
[email protected]pinning session1.0.0-beta.1, next to a scope resolving1.0.0-beta.2:With a range the same install resolves to one copy.
^1.0.0-beta.2satisfies1.0.0-beta.2,1.0.0-beta.3,1.0.0and1.0.1, so core follows a session release without moving.Verified: all five layers still link as workspace members and
tsc -bbuilds them.