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
Commit 91f59dd
Browse filesBrowse the repository at this point in the historyBrowse files
Require an explicit schema loader when binding programs and specs (#23672)
Codegen entry points now require an explicit loader:
- `pcl.BindProgram` and `pcl.BindResourceProgram` take the loader as a
required positional argument; the `pcl.Loader` and `pcl.PluginHost`
options are removed.
- `schema.ImportSpec` gains a loader parameter, matching
`schema.BindSpec`.
Callers that bind a self-contained spec or program may pass the new
`schema.NewNullLoader`, which fails loudly if asked to resolve a
package.
Production callers thread a real `schema.NewPluginLoader` built from
their
plugin context.
This removes another place where something that loads schemas can
diverge from what it should be.
0 commit comments