You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go SDK: a pointer spec field cannot be set from a literal #73951
airflow.DagSpec and airflow.TaskSpec carry 9 pointer fields, so that a value an author
sets explicitly is distinguishable from one left unset — a bool whose default comes from
Airflow config, such as catchup, is the clearest case.
Go does not allow taking the address of a literal, so the obvious spelling does not compile:
go-sdk/go.mod is on go 1.25.0. Go 1.26 was released in February 2026, which is too new
to require of everyone who builds a Go bundle, so the floor is not being raised for this.
Decided while reviewing #73936.
An airflow.Ptr[T] generic helper was considered and rejected there: the pointer
transformation is the language's job, not the SDK's.
Acceptance
Go 1.26 is an acceptable minimum for the Go SDK.
go-sdk/go.mod raised to it.
new(expr) used in the Dag authoring docs and examples, so the spelling an author
copies is the short one.
Drafted-by: Claude Code (Opus 5) (no human review before posting)
Thanks @Rachit-Gandhi, but this can't be picked up yet, the fix needs Go 1.26 (new(expr)), and the go-sdk is still on 1.25 with no plan to raise it for now. Since it's blocked on that version decision, it's not a good first issue. I'll keep it assigned to myself and revisit once 1.26 is an acceptable minimum.
Activity
Rachit-Gandhi commentedon Sep 30, 2026
@henry3260 can I take this up?
henry3260 commentedon Sep 30, 2026
Thanks @Rachit-Gandhi, but this can't be picked up yet, the fix needs Go 1.26 (
new(expr)), and the go-sdk is still on 1.25 with no plan to raise it for now. Since it's blocked on that version decision, it's not a good first issue. I'll keep it assigned to myself and revisit once 1.26 is an acceptable minimum.