fix(angryjet): rename helpers to convert#100
Conversation
Signed-off-by: Duologic <jeroen@simplistic.be>
0abf9ec to
6e507c9
Compare
|
I'm getting a lint error locally: Not sure how to solve that. |
|
Updating golangci-lint seems to help... |
|
|
||
| methods := method.Set{ | ||
| "ResolveReferences": method.NewResolveReferences(types.NewTraverser(comm), receiver, ClientImport, ReferenceImport, HelperImport, PtrImport), | ||
| "ResolveReferences": method.NewResolveReferences(types.NewTraverser(comm), receiver, ClientImport, ReferenceImport, ConvertImport, PtrImport), |
There was a problem hiding this comment.
if we want to be thorough, we could also update the name of this function argument in its signature/implementation too - it's currently still helpersPkgPath: https://github.com/crossplane/crossplane-tools/blob/master/internal/method/resolver.go#L32
And then in multiResolutionCall():
https://github.com/crossplane/crossplane-tools/blob/master/internal/method/resolver.go#L165
And then in the resolver tests too, e.g.:
- https://github.com/crossplane/crossplane-tools/blob/master/internal/method/resolver_test.go#L323
- https://github.com/crossplane/crossplane-tools/blob/master/internal/method/resolver_test.go#L108
- https://github.com/crossplane/crossplane-tools/blob/master/internal/method/resolver_test.go#L273
- https://github.com/crossplane/crossplane-tools/blob/master/internal/method/resolver_test.go#L285
There was a problem hiding this comment.
Great, I'll do that. Interesting that this isn't catched by linting or another CI test. 🤔
There was a problem hiding this comment.
awesome @Duologic - just drop another message here when you're done and we'll take another look!
There was a problem hiding this comment.
@jbw976 done, grepped for 'helper' and replaced what I found.
Signed-off-by: Duologic <jeroen@simplistic.be>
9ae78c9 to
d4a4d50
Compare
Description of your changes
Follow up on #91, this rename was forgotten there.
I have:
make reviewable testto ensure this PR is ready for review.How has this code been tested
I've been running this for generating https://github.com/grafana/crossplane-provider-grafana/
I did have to update the generated code intermittently as I couldn't run
go mod tidyormake generatebecause of this rename. Not sure if qualifies as a breaking change.