Repository navigation
Conversation
Dev builds report the VERSION file's version plus build metadata, not a -dev- prerelease suffix. Signed-off-by: Yves Brissaud <[email protected]>
1042cba to
d78dc98
Compare
|
🤖 (posted on behalf of @vito) Apologies in advance if this is confusing; happy to sync on Discord if so. A heads-up for the v1.0.0-beta.22 cut: we're aiming to ship the identifier-casing stack in beta.22 (#14810 merged; #14891, #14895 and #14902 to follow). With this PR, Could this hold until after the cut? Or the fill could cap at the SDK's own target instead of the engine's version. Separately, a beta.22 target would put new modules past the cut: new modules at beta.22 get GraphQL-style naming, which the unported SDK codegen doesn't produce yet. That's another reason to keep new modules on the SDK's default target for now. |
|
This PR is irrelevant, I forgot to close it, but I don't know why it's referenced somewhere else |
When the selected SDK module declares a
targetVersionsetting and the author does not pass--target-version,dagger module initnow records the running engine's version, without build metadata, in the module's scope setting. The flag itself already exists for every SDK constructor field.The fill is skipped when the flag is passed, or when a module-wide
targetVersionis already configured. Init asks the engine for the SDK module's effective settings, so a value in the repository config or the user config counts, and an SDK-declared default does not suppress the fill. A scope setting would otherwise override a deliberate module-wide choice.Also corrects the comment in
engine/version.go, whose example of a-dev-build predates theVERSIONfile scheme.No SDK declares
targetVersionyet, so this has no effect until one does.Checks run: the new table test (six cases) and the existing
internal/cmd/daggertests it touches;go test ./engine/;go vet. Mutation checks show the tests fail when either old behaviour is restored.TestCloudLoginExplicitAuthenticationis flaky on a host with real cloud credentials, with or without this change.Checks not run here: engine-backed integration tests and
golangci-lint.