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
Sealed constructors return a typed nil on the error path: DiscoverResource wraps a nil struct pointer in a non-nil interface #807
discoverResource returns (*resource, error). On its error path the *resource is nil, and Go converts that
nil pointer to a non-nilResource interface value holding a nil pointer. A caller that checks err first is
unaffected; one that checks resource != nil, or a framework path that receives the pair, sees a resource that
is not there.
Affected: service, git, appnet, json, yaml, mem, function, pkg — every provider sealed in phases
1–6. file (phase 7) returns an explicit nil, err and is the shape to copy:
Activity
file's four variants are sealed interfaces discriminated by kind(), a…
file's four variants are sealed interfaces discriminated by kind(), a…
The ConvertFrom pairs are gone from every sealed resource, constructo…
The ConvertFrom pairs are gone from every sealed resource, constructo…