Repository navigation
Conversation
Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
aluzzardi
left a comment
There was a problem hiding this comment.
LGTM
nit: It would (subjectively) be cleaner to call this compiler. I can make a follow up PR if you agree (it's cheap to rename on vscode)
nit: net/http uses this same pattern (e.g. http.Get() is an "alias" for http.DefaultClient.Get(), DefaultClient being the equivalent of our global cc). You can use either the DefaultClient (by calling functions directly in the http package), or you can create your own Client instance. If we were to keep the embedded cc reference in Value, we could achieve the same (right now it's not possible because even if you create a new Compiler instance, Values would still reference the global). I can do that in a follow up if you agree.
| return errors.New(cueerrors.Details(err, &cueerrors.Config{})) | ||
| } | ||
|
|
||
| func Lock() { |
There was a problem hiding this comment.
nit: Now that the logic is self contained, can we get rid of those exposes lock functions? I don't think we're using them anywhere else
There was a problem hiding this comment.
Yeah makes sense. Will do.
I have no opinion on either of these, so no issue with a follow-up PR. |
…ng.org/grpc-1.49.0 build(deps): bump google.golang.org/grpc from 1.48.0 to 1.49.0
ccNOTE: the sub-package is called
ccto minimize breakage of existing code which had a variablecc := &Compiler{}. Since the name and interface are the same, the calls to methods of theccvariable become calls to functions of theccpackage, and everything keeps working the same.