-
-
Notifications
You must be signed in to change notification settings - Fork 256
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 uint64 alias custom parser #52
Fix uint64 alias custom parser #52
Conversation
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
0e21b77
to
61c4a20
Compare
The last commit I added, "remove redundant struct handling", was done because code coverage had shown only the error path of There is a slight difference now, in that the custom parser for structs is looked up with |
closes #25 using caarlos0/env#52 until PR is merged
Hi @vith , Sorry for the delay. Can you rebase the work? It looks good :) |
this was an issue for custom parsers registered for type aliases of standard types, as the built-in parsers would match the type and get used instead of the custom one.
…d for the underlying type or other aliases of that type
61c4a20
to
299995a
Compare
Sorry for the delay here too. It's rebased now. The CI failure looks like network flakiness I think? Maybe you can trigger a retry. |
thanks for the PR @vith ! |
Fix uint64 alias custom parser
Needed to check for custom parsers before matching against basic types, since aliases of those types were matching in the switch, causing the custom parser to be ignored.