Repository navigation
fix(go): default new modules to a pre-cut target on every path - #89
Merged
Merged
Conversation
Contributor
Author
|
🤖 Verified on an engine built from the dagger beta.22 stack (dagger#14891/#14895/#14902 @ acf75d4), with go-sdk#80's pin applied on top:
Depends on #80: without its pin, |
This was referenced Oct 31, 2026
vito
marked this pull request as ready for review
November 3, 2026 16:05
An engine with dagger/dagger#14902 serves an entrypoint module at the release its dang.toml declares, else v1.0.0-beta.24, so bindings from a running v1.0.0-beta.25 engine would use names that view lacks. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]>
The dang.toml writer calls loadDangConfig, which first ships in v1.0.8. Signed-off-by: Yves Brissaud <[email protected]>
dagger/dagger#14902 reads the entrypoint's Dagger import to choose the version it serves the module at. Signed-off-by: Yves Brissaud <[email protected]>
Released engines ignore the file, so only the dagger/dagger#14958 stack can show that the generated declaration takes effect. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
eunomie
force-pushed
the
precut-default-targets
branch
from
November 4, 2026 08:53
1b8c44a to
3ffbc58
Compare
vito
added a commit
that referenced
this pull request
Nov 4, 2026
Preserve #89's generated dang.toml when integrating the naming port. Write it before reading ModuleSource.naming and the entrypoint schema, then carry that same file into the output instead of rewriting it after codegen. Align the merged target checks and docs with the beta.26 floor and beta.25 fallback. Cover new and upgraded imports in the naming fixture; generation now always writes the target, so an unpinned generated module is obsolete. Signed-off-by: Alex Suraci <[email protected]>
vito
added a commit
that referenced
this pull request
Nov 5, 2026
Preserve #89's generated dang.toml when integrating the naming port. Write it before reading ModuleSource.naming and the entrypoint schema, then carry that same file into the output instead of rewriting it after codegen. Align the merged target checks and docs with the beta.26 floor and beta.25 fallback. Cover new and upgraded imports in the naming fixture; generation now always writes the target, so an unpinned generated module is obsolete. Signed-off-by: Alex Suraci <[email protected]>
vito
added a commit
that referenced
this pull request
Nov 6, 2026
Preserve #89's generated dang.toml when integrating the naming port. Write it before reading ModuleSource.naming and the entrypoint schema, then carry that same file into the output instead of rewriting it after codegen. Align the merged target checks and docs with the beta.26 floor and beta.25 fallback. Cover new and upgraded imports in the naming fixture; generation now always writes the target, so an unpinned generated module is obsolete. Signed-off-by: Alex Suraci <[email protected]>
eunomie
pushed a commit
that referenced
this pull request
Nov 16, 2026
Preserve #89's generated dang.toml when integrating the naming port. Write it before reading ModuleSource.naming and the entrypoint schema, then carry that same file into the output instead of rewriting it after codegen. Align the merged target checks and docs with the beta.26 floor and beta.25 fallback. Cover new and upgraded imports in the naming fixture; generation now always writes the target, so an unpinned generated module is obsolete. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]>
eunomie
pushed a commit
that referenced
this pull request
Nov 19, 2026
Preserve #89's generated dang.toml when integrating the naming port. Write it before reading ModuleSource.naming and the entrypoint schema, then carry that same file into the output instead of rewriting it after codegen. Align the merged target checks and docs with the beta.26 floor and beta.25 fallback. Cover new and upgraded imports in the naming fixture; generation now always writes the target, so an unpinned generated module is obsolete. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]>
eunomie
added a commit
that referenced
this pull request
Nov 23, 2026
* identifiers: name identifiers through the engine Add the package Go codegen uses to name identifiers by the engine's naming rules: it asks the engine with Query.formatIdentifiers instead of formatting names itself. A Connector applies the gate: names follow the rules only when both the generated schema's version and the engine's release (Query.version) are at or past v1.0.0-beta.22. Otherwise it returns nil Names, the legacy rules, without connecting when the schema alone rules it out. Older engines serve formatIdentifiers too, but name modules by strcase and report every v1.0.0 prerelease view as v1.0.0, so neither the field nor the schema version decides alone. Generators look names up while they render; Names.Run formats the names a render missed in one aliased GraphQL query per round, always passing the schema's version so the dictionary is that version's, and renders again until nothing is missing. Session is the nested client's GraphQL endpoint (DAGGER_SESSION_PORT and DAGGER_SESSION_TOKEN), and identifierstest a fake engine for generator tests. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * identifiers: batch several versions in one query A module's bindings look Go identifiers up at the generated schema's version and the module's own schema names at its effective version. identifiers.Run formats what all of them miss in one round trip, each formatIdentifiers field at its own version variable. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * gogenerator: name Go identifiers by the engine Past identifiers.CasingVersion, the bindings' types, methods and option structs are the engine's PascalCase with uppercase acronyms, like dagger/dagger's in-repo Go generator: commitSha and commitSHA are both CommitSHA, ShortSha is ShortSHA. Parameters and enum constants keep their spelling; before the cut, the legacy lintName rules stay byte for byte. Generators prefetch the schema's names and render under Names.Run, so a render usually takes one formatIdentifiers round trip. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * templates: predict module names by the engine The module's interface bindings and entrypoint constructor spell its declarations as the engine names them. Past the cut, moduleNamer mirrors the engine's core.Namer through formatIdentifiers: objects PascalCase with uppercase acronyms, fields and arguments camelCase, the module-name namespace prefix by words with a flat fallback, and the main object matched by name or flat spelling. With nil names the strcase rules stay byte for byte. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * codegen: connect generators to the engine's naming client, core and normalize-source-links name identifiers through the codegen exec's nested session (or core's own connection) when the schema and engine are past the cut; older ones never connect. Tests run with the session environment unset and a pre-cut fake engine. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * module-codegen: name the module by its own version The engine names an entrypoint module's declarations by the version its dang.toml declares (v1.0.0-beta.20 without one), while the staged schema the bindings are generated from carries the runtime manifest's. go-sdk reads that effective version from the staged final entrypoint manifest and passes it as --module-version: wire-name predictions follow it, Go identifier style follows the schema. A failed read only fails generation on an engine past the cut; older ones name every module by strcase. Codegen execs nest so the generators can call formatIdentifiers. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * gogenerator: test naming by the engine's rules The Go namer and module namer are checked against formatIdentifiers results recorded from dagger/dagger 441d95c2 at v1.0.0-beta.22 (ShortSHA, NamingAppHTTPClient, e2eTest, K8sTools for k8s-tools), beside their strcase spellings. module-codegen generates a module with the schema and module versions on either side of the cut: the interface bindings select the module's names by its version, and the core bindings spell Go identifiers by the schema's. An unreadable module version only fails past the cut. The fake engine gains per-version tables and a fallback for the names a test doesn't pin. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * e2e: call a module named by either rules naming calls-check generates an embedded entrypoint module with and without a dang.toml pinning v1.0.0-beta.22, checks the interface name its bindings predict (NamingAppHttpFetcher by strcase, NamingAppHTTPFetcher by the engine) and calls it through a nested CLI by the engine's names (e2-etest and ARM_64, or e2e-test and ARM64). It needs an engine at the cut, so no check runs it yet. The module gets a workspace of its own because this repository ignores dang.toml, which would hide the pin from the engine. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * templates: load nullable objects by schema name The node fragment of a nullable object, or of a list of interfaces, named the Go type. Past the cut a Go name can differ from its schema name, such as a dependency's strcase DepGpuThing styled DepGPUThing, so the fragment named a type the schema lacks. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * module-codegen: style unified bindings as runtime Unified bindings alias the core types, option structs and With functions of the runtime's dagger.io/dagger/core, which its own version named. Their Go identifiers now follow that runtime's version instead of the schema's, so a module on a beta.22 engine with the published v1.0.0-beta.17 runtime keeps dagger.SshfsVolumeOpts, which the runtime declares, rather than SSHFSVolumeOpts, which it doesn't. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * codegen: say when generation needs the session A v1.0.0 schema needs the session too: every older v1.0.0 prerelease engine reports it, so only the engine's release tells the rules apart. The error now says that, rather than claiming the version follows the engine's rules, and the client generator is no longer called engine-free. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * module-codegen: follow a replaced runtime's names A replace of dagger.io/dagger selects the core unified bindings alias: a module version's names follow that version, and a local checkout's, an SDK developer's generated against the engine at hand, the schema's. The require line alone would give a checkout of a newer SDK legacy names. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * identifiers: document what the gate assumes A schema read from a file is taken to come from the session's engine, whose release is what tells an older engine's v1.0.0 from a schema past the cut; core's --introspection-json-path help says it still needs that session. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * identifiers: format names up front, misses direct Generators format the names a schema declares in one formatIdentifiers query, kept in a map, and format a name they derive while rendering (FooID, a handle) with a direct call when first looked up, cached. This replaces the render-lookup-render loop: Names.Run, the pending names, maxRounds and the re-renders are gone, and a generator renders once. moduleNamer's lookups work the same way, without a prefetch: only names the module's declarations use reach the engine. Its main-object check compares flattened names first, since names the engine formats alike are alike once flattened, so a helper type, function or constant is never sent. Names are no longer screened with Valid before they're sent. A name the engine can't parse fails formatIdentifiers, and generation with it, instead of quietly keeping its legacy spelling: Prefetch returns the error, and a failed Lookup's is returned by the generator (Names.Err), ahead of any render error the fallback name may have caused. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * codegen: style every schema through the engine Drop lintName: Go identifiers are the engine's formatIdentifiers styling at every schema version, pre-cut views included (ShortSha becomes ShortSHA), so the generator no longer carries a copy of naming rules. Only the prediction of a module's own schema names keeps the gate (Connector.ModuleNames): the engine names a module before the cut by strcase. On an engine released before the cut, a formatIdentifiers failure names the release generation needs. Source links match every spelling of a name, since the engine's built-in Go codegen still spells pre-cut schemas with golint initialisms. Unified bindings alias dagger.io/dagger/core, which a release before the cut spells with golint-style initialisms, so they can't target one: defaultTarget and sourcesFloor move to v1.0.0-beta.22, and module-codegen refuses a pre-cut target or replacement before it writes anything. dagger.io/dagger v1.0.0-beta.22 isn't published yet: TestSdkDefaultTargetIsPublished fails until it is, and the unified module-codegen tests skip unless GO_SDK_TEST_RUNTIME names a checkout to stand in for it. Tests style names with identifierstest.Recorded, engine/naming's formatting of every name they use; the core parity test respells the eight identifiers dagger/dagger's generator still spells by golint rules. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * codegen: name module declarations by the engine The engine now answers the names it gives a module's own declarations: ModuleSource.naming (dagger/dagger#14996). The interface bindings take the schema names of the module's interfaces and their functions from typeNames and fieldNames, and the dispatcher and Dang entrypoint take the main object from mainObject, each asked with a direct, cached call when first needed. A failed answer fails generation. The engine answers by the rules of the version it names the module by, strcase before the cut, so the SDK no longer predicts any of them: moduleNamer's strcase and word-prefix mirrors, the Connector.ModuleNames gate and the --module-version plumbing are gone. go-sdk.dang passes module-codegen the ID of the final entrypoint module source in a file (--module-source-id-file), and module-codegen looks it up with node(id:); the source answers before its entrypoint is generated. The codegen execs no longer pass experimentalPrivilegedNesting: v1 views nest by default. The Connector refuses an engine before v1.0.0-beta.22, the release taken to carry the API. A test validates every query the identifiers package sends against #14996's schema (identifiers/testdata/engine.graphqls). Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * module-codegen: drop the pre-cut unified refusal Unified bindings no longer refuse a dagger.io/dagger, targeted or replaced, that spells its core identifiers by the rules before v1.0.0-beta.22. The go-sdk.dang targetVersion floor already keeps modules off those releases; a replaced library is a development exception, whose mismatched aliases fail to compile. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * codegen: ask the engine for names in one query Trim the naming machinery to what generation needs: - identifiers is a Query func and the session's: Names formats the schema's names as Go identifiers in one formatIdentifiers query and calls directly on a miss; NameModule asks a module source's naming once, for the types, functions and arguments ModuleDeclarations lists from the parsed package, and the main object among its structs. An unasked name panics, an unparseable one fails the query. - No engine release check: an engine without ModuleSource.naming fails the query itself. No formats but Go names, no dedup, no lazy cache. - Tests use a small fake engine; the recorded tables, the replaying engine, the schema-validation test and its gqlparser dependency, and the GO_SDK_TEST_RUNTIME library stand-in are gone, with the tests that only ran under it. naming.dang asserts the module names end to end instead. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * codegen: name arguments as parsed, format once Self-review fixes on the trim: - ModuleDeclarations names an interface method's arguments as the parser does: an unnamed param by its type, a pointer to an inline struct by its fields, and no context. Codegen panicked on those signatures. - Prefetch skips names already formatted, so the bootstrap, unified and entrypoint generation sharing one Names query once, not three times. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * module: declare engineVersion v1.0.0-beta.22 The SDK module declares the engine floor instead of checking it in code. It is a cut literal, like versions.toml's. Declaring it moves go-sdk onto the post-cut API view. Its own core calls use the Capitalized-acronym field spellings: introspectionSchemaJson, htmlRepoUrl, clientSchemaIntrospectionJson. The engine names its main type GoSDK, not GoSdk; the goSdk constructor and the function names don't change. Engines compare only base versions, so a v1.0.0-beta engine before the cut still loads the module and breaks on those fields. A v0.x engine refuses it. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * templates: name arguments with the parser ModuleDeclarations asked for interface arguments by a copy of the parser's naming, and an unnamed param of a named primitive or alias type (Path, Label) was named differently, so codegen panicked. It now runs parseParamSpecs itself, and asks only about interfaces that embed DaggerObject: a helper interface such as Write(_ []byte) no longer reaches the engine, which can't parse _. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * templates: report an undeclared type, not panic A module API that uses a type ModuleDeclarations didn't list, such as an interface missing the DaggerObject embed or another package's struct, now fails generation with an error naming it instead of a stack trace. The declarations' parse also sees the package's objects, as the real parse does, so enum params are named alike. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * engine-e2e: drop the pre-floor engine checks runtime-floor-check, entrypoint-floor-check, sources-guard-check and beta-16-migration-check ran the SDK on beta.12–beta.17 engines. With the SDK module declaring v1.0.0-beta.22 and generation asking ModuleSource.naming, those engines can't run it. The engine-dev pins only they used, runChecks, and the e2e beta16 migration checks and fixture go with them. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * engine-e2e: pin the engine carrying #14996 engine-e2e's default engine and engine-dev move from v1.0.0-beta.18 to dagger/dagger naming/module-source-naming 017633c (dagger/dagger#14996), the first engine that runs the SDK at its floor. Two things it surfaced: - The entrypoint contract checked the generated entrypoint against the bindings' schema, the targeted release's. The entrypoint is served at its own source's view, which can spell an enum's members differently (FunctionCachePolicy.Never before the cut, NEVER after). It's now checked against the entrypoint source's schema. - dang-sdk at the nested lock's 207f22c doesn't load on this engine (cannot use JSON! as Dagger.JSON!); its main, 14ba9d3, does. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * sdk: move the cut to v1.0.0-beta.25 v1.0.0-beta.22 through beta.24 ship without the engine's identifier-casing work and ModuleSource.naming, so the cut that carries them is beta.25. The SDK module declares engineVersion v1.0.0-beta.25, and defaultTarget, sourcesFloor, their docs, goldens, e2e literals and test cases follow; the refusal cases test beta.24, the last pre-cut release, and beta.26. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * identifiers: format names through Query.naming dagger/dagger#14996 replaced Query.formatIdentifiers(version:) with Query.naming(version:), whose Naming formats the names. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * codegen: name the module by Naming.module go-sdk.dang reads the served module source's naming (version, name, originalName) and passes the three to module-codegen as flags, which asks naming(version:).module(name:, originalName:) for the module's schema names. The module source ID file and its node(id:) lookup are gone, so the codegen exec's inputs are plain strings. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * sdk: move the naming cut to beta.26 Beta.25 shipped without the naming APIs. Move the module floor, target, entrypoint goldens and boundary checks together, and pin engine-e2e to Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> #14996's beta.26 restack. Keep historical library and fixture versions. * sdk: name the final generated entrypoint Preserve #89's generated dang.toml when integrating the naming port. Write it before reading ModuleSource.naming and the entrypoint schema, then carry that same file into the output instead of rewriting it after codegen. Align the merged target checks and docs with the beta.26 floor and beta.25 fallback. Cover new and upgraded imports in the naming fixture; generation now always writes the target, so an unpinned generated module is obsolete. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * e2e: remove the obsolete beta16 check Preserve the pre-floor check deletion from the naming port after its rebase over main's edit to this file. Its fixture and caller are already gone, and the SDK no longer runs on that engine. Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> * sdk: load the served source with its dependencies Regenerating a daggerGo module loaded the existing entrypoint without its go dependency, so the engine failed to evaluate its sources. Signed-off-by: Yves Brissaud <[email protected]> * e2e: expect the beta.27 default in the naming check Signed-off-by: Yves Brissaud <[email protected]> * sdk: name a module without uploading its entrypoint Signed-off-by: Yves Brissaud <[email protected]> * e2e: follow the beta.26 floor in two target checks Signed-off-by: Yves Brissaud <[email protected]> * engine-e2e: expect the missing package of a stale build At the beta.26 floor the fixtures build with dagger/go, which reports the missing package with Go's own diagnostic, without the go build dispatch's "run dagger generate" hint. Signed-off-by: Yves Brissaud <[email protected]> * templates: test the go build hint on a missing package Signed-off-by: Yves Brissaud <[email protected]> --------- Signed-off-by: Alex Suraci <[email protected]> Signed-off-by: Yves Brissaud <[email protected]> Co-authored-by: Yves Brissaud <[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.
Problem
dagger v1.0.0-beta.22 cuts identifier casing: core fields are renamed (
asJSON→asJson,clientSchemaIntrospectionJSON→…Json,commitSHA→commitSha, …), gated on the module's declared version. Until the Go SDK is ported, new modules must stay pre-cut (≤ v1.0.0-beta.21). Only the default path (Dang entrypoint + unified clients) did, because it targetstargetVersionorversions.defaultTarget.unifiedClients = false) targeted the running engine release. On beta.22 the staged manifest, and so the bindings, were post-cut. The engine serves an entrypoint module without adang.tomlat v1.0.0-beta.20 (core: version entrypoint modules via dang.toml dagger#14902), so the module failed when called. Smoke test:dangEntrypoint = false,fat,template = "legacy"): sdk-helpers'withLegacyGoRuntimegot noengineVersion, so a new manifest declared the running engine's version. On beta.22 that means post-cut, and the codegen isn't ported to the new naming rules yet.Change
targetRelease(...), i.e.targetVersionwhen set, elseversions.defaultTarget, the same as unified ones. The staged schema, the bindings, the--dagger-versionminimum and the entrypoint'sDAGGER_CLIENT_VERSIONall use that release.engineTargetis removed.!hadManifest) declaresengineVersion = versions.defaultTarget. An existing manifest'sengineVersionis never overridden. sdk-helpers'withLegacyRuntimeusesengineVersion ?? loaded, so an explicit value would replace the declared one. That's why it's passed only when no manifest existed. An existing manifest that declares noengineVersionkeeps today's behavior (sdk-helpers fills in the running engine's). Pinning it would change what an existing module already means to the engine. The docs say so.targetVersiondoc string, anddocs/outside-files.md("The release the generated code targets", Migration), plus a comment in module-codegen..dagger/modules/e2e/target.dang):embeddedCheck: the default declares the SDK's release, regeneration is stable, the module loads, andtargetVersionpins beta.20;runtimeCheck: a new manifest declares the SDK's release, and an existing beta.20 manifest is kept byte-for-byte;refusalsCheck: now expects only the Go runtime refusal.targetVersionon embedded entrypoints: now allowedGeneration used to refuse
targetVersionunless the module had both a Dang entrypoint and unified clients. Embedded entrypoints now go through the sametargetReleaseas unified ones, so allowing the setting there is the consistent choice and the smallest change. Refusing it would need a separate branch that ignores a target the code already honors. The floor/ceiling validation and its messages are unchanged. The Go runtime still refusestargetVersion, with a reworded message: its code follows the manifest'sengineVersion, and pinning that from settings is a larger change.Reverses documented #85 behavior
#85 documented that "embedded bindings and the Go runtime follow the running engine". This PR reverses that for embedded entrypoints and for new Go runtime manifests. @eunomie, as #85's author, please check that this matches the intent.
Testing
Run against a released v1.0.0-beta.21 engine, so the beta.22 failure itself can't be reproduced here. A beta.22 verification follows separately.
e2e/target/{embedded-check,runtime-check,refusals-check,default-check,pin-check}e2e/module-init-check,e2e/entrypoint/default-compatibility-check,e2e/manifest/{git-client-check,local-client-check}All passed.