-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add support for fields that match go reserved names #74
base: main
Are you sure you want to change the base?
Conversation
257eb58
to
227dbb7
Compare
Hey @mariusvniekerk, |
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.
Thanks again for the contribution.
PR looks good, just a couple of minor issues.
Earthfile
Outdated
ARG --global ALPINE_VERSION=3.19 | ||
ARG --global GO_VERSION=1.22 | ||
ARG --global LINTER_VERSION=v1.57.2 |
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'm not sure this is necessary, is it?
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.
might not be necessary, i vaguely recall running into issues with eathly 0.8+ without it i think
if len(message.Fields) == 0 { | ||
return nil | ||
} |
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.
is this necessary?
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.
yes, without this messages with zero fields have issues
This builds and extend on pull request #12
Fixes #2 and likely fixes #46
I've added a test case to show the example case