Repository navigation
Description
What is the issue?
Since github.com/dagger/otel-go v1.47.0 was tagged (2026-11-24 03:04 UTC), engine v0.21.10 can no longer build any Go SDK module. This includes a fresh dagger init --sdk=go module, and also already-published modules pinned to a fixed commit, which are now unusable as dependencies.
For example, github.com/vbehar/daggerverse/jfrogcli@82f5c55 worked the day before and now fails on every call. Modules in other SDKs that depend on it (Python in our case) fail as soon as they call it. Nothing changed on the module side: the engine builds the module at load time and resolves an unpinned dependency to its latest version.
package github.com/vbehar/daggerverse/jfrogcli
imports github.com/dagger/otel-go from dagger.gen.go
imports go.opentelemetry.io/otel from init.go
imports go.opentelemetry.io/otel/internal/global from handler.go
imports go.opentelemetry.io/otel/log from logger.go
imports go.opentelemetry.io/otel/internal/global from keyvalue.go: import cycle not allowed
Impact
- Engine operators on ≤ v0.21.10 lose every Go module in their dependency tree at once, including third-party modules they don't control.
- Consumers can't fix it themselves: modules are fetched at a pinned git ref, so changing a dependency's go.mod requires forking it.
Workarounds
- Consumers: upgrade the engine to ≥ v0.21.11. That's the only fix that doesn't require forking every affected Go dependency.
- Module authors: add
require github.com/dagger/otel-go v1.43.0to the module's go.mod (works on v0.21.10) and publish a new version. Consumers still have to bump their pin.
Related
- deps: bump otel-go to v1.47.0 (OpenTelemetry 1.47) #15261 drops the stale
otel/logreplaces and bumps otel-go to v1.47.0. That fixes future releases, but not engines already released without an otel-go pin. - GHSA-q7gw-24fr-5p69: Go SDK pins otel/sdk and otel/trace below 1.47.0, and modules can't bump them #15205: the same
replaceblocks the otel/sdk security bump. - Go SDK codegen's 'go get -u' + 'go mod tidy' makes module builds (incl. built-in python-sdk runtime) non-reproducible and fragile to upstream dependency regressions #14462: an earlier instance of the same cycle (Oct 2026), triggered by
go get -u.
Suggestion: mention in the release notes or troubleshooting docs that engines ≤ v0.21.10 can no longer load Go modules since otel-go v1.47.0, and that upgrading to ≥ v0.21.11 is required.
Dagger version
v0.21.10 (broken), v0.21.12 (OK)
Mechanism
- On v0.21.10, the generated code (
dagger.gen.go) importsgithub.com/dagger/otel-go, butsdk/go/go.moddoesn't require it. The codegen'sgo mod tidyresolves it to the latest version, now v1.47.0, which pullsgo.opentelemetry.io/otelv1.47.0. - In otel v1.47.0,
internal/global(logger.go,state.go) importsgo.opentelemetry.io/otel/log. v1.43.0 through v1.46.0 don't. - The codegen still copies the SDK's
replace go.opentelemetry.io/otel/log => v0.16.0(andsdk/log) into the module's go.mod.otel/logv0.16.0 importsotel/internal/global(keyvalue.go), which closes the cycle.
Steps to reproduce
Consuming a published module, unmodified:
dagger -m github.com/vbehar/daggerverse/jfrogcli@82f5c55fd5005e87a71fdb1da7f3509d37eb2f34 call get-latest-versionFresh module:
dagger init --sdk=go --name=testotel --source=.
dagger call container-echo --string-arg=ok stdout| Engine | Published module (jfrogcli@82f5c55) | Fresh dagger init --sdk=go |
|---|---|---|
| v0.21.10 | ❌ import cycle | ❌ import cycle (otel-go v1.47.0, otel/log => v0.16.0) |
| v0.21.12 | ✅ OK (2.133.0) |
✅ OK (otel-go v1.43.0, same replaces) |
v0.21.11+ isn't affected because sdk/go/go.mod requires github.com/dagger/otel-go v1.43.0, which pins it.
Log output
$ dagger --progress=plain -m github.com/vbehar/daggerverse/jfrogcli@82f5c55fd5005e87a71fdb1da7f3509d37eb2f34 call get-latest-version
1 : connect DONE [8.7s]
9 : load workspace: .
10 : ┆ loading type definitions
10 : ┆ loading type definitions DONE [11.9s]
9 : load workspace: . DONE [11.9s]
11 : parsing command line arguments
11 : parsing command line arguments DONE [0.0s]
12 : jfrogcli: Jfrogcli!
12 : jfrogcli ERROR [8.6s]
12 : ! call constructor: exit code: 1
Error: call constructor: exit code: 1 [traceparent:70f0beda6a52276031c03666cf1bfbe6-13814a7cf74e2c46]
Stderr:
package github.com/vbehar/daggerverse/jfrogcli
imports github.com/dagger/otel-go from dagger.gen.go
imports go.opentelemetry.io/otel from init.go
imports go.opentelemetry.io/otel/internal/global from handler.go
imports go.opentelemetry.io/otel/log from logger.go
imports go.opentelemetry.io/otel/internal/global from keyvalue.go: import cycle not allowed
Activity