-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/239 #288
Fix/239 #288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes the problem and looks good to me. just a couple of comments/questions.
|
||
return g.Transform(ctx, func(id string, out *graph.Graph) error { | ||
r, e := g.Transform(ctx, func(id string, out *graph.Graph) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's been brought up before that single-letter variable names can make things hard to read. not sure it's a problem here since you are just returning them (don't even really need them).
@@ -33,9 +35,9 @@ type dependencyGenerator func(node *parse.Node) ([]string, error) | |||
// the graph and creates edges to fit them | |||
func ResolveDependencies(ctx context.Context, g *graph.Graph) (*graph.Graph, error) { | |||
logger := logging.GetLogger(ctx).WithField("function", "ResolveDependencies") | |||
logger.Debug("resolving dependencies") | |||
logger.Info("resolving dependencies") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this actually be an Info log instead of Debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, looks like this changed back from the PR where I turned down the levels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you give samples/qm.hcl a better name and a comment about what it's actually doing?
9b25e49
to
664ce24
Compare
…traneous newlines
5f77c51
to
5592068
Compare
Fix calls to
lookup
failing when the nodes are inside of a module.