-
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
return errors where appropriate #21
Conversation
… a bool indicating success. Some minor tweaks for readability and adhering to conventions.
I've changed base from |
(sorry, I didn't see you changed the PR, so I was opening a new one when I saw what you did) |
Don't worry, the Github UI can be confusing at times... (Looks like I need to update the CI tooling. The test matrix still targets Go 1.13 👀) |
oh. there are errstr all over the place now. I'll fix. |
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.
Looks good so far. I'll merge this soon, after I've reconfigured the CI pipeline.
Thanks for looking at this. Sorry for the errstr stuff. The question is what we're suppose to do with the deprecated stuff. I can have a stab a clearing it out once this PR is merged, or perhaps you wanna do it? Let me know and I can plan accordingly. |
Also correct some linter issues.
Don't worry, things happen.
Feel free to clear them out, while you're at it :) I've pushed a few commits to update dependencies and the CI workflows, so you may want to rebase your PR on top of them. |
update error handling to use errors.As where appropriate.
Removed the deprecated calls as requested. Gone over the existing todos and resolved as many as I could. There is one left, which is wrt to a potential error which might show up during handling anonymous sections, something I know know nothing about. I've been unable to figure out how to get switch my fork to use the v2 branch directly, so I haven't been able to rebase. Hope it doesn't cause much problems. I'm quite happy with the state of it as it is now. Lemme know. |
Assuming
i.e.
Would you try that? If not, or if problems arise, let me know, I should be able to do this on my end. |
… a bool indicating success. Some minor tweaks for readability and adhering to conventions.
…k that the errors returned match up.
update error handling to use errors.As where appropriate.
I think I managed to pull it off. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## v2 #21 +/- ##
==========================================
- Coverage 89.85% 87.97% -1.88%
==========================================
Files 7 7
Lines 680 682 +2
==========================================
- Hits 611 600 -11
- Misses 60 73 +13
Partials 9 9 ☔ View full report in Codecov by Sentry. |
Looks good. I'll merge this when I'm back home. |
I've squashed your commits into 60c1481, tagged as There still was a uci.SetType("pkg", "sect", uci.TypeOption, "val")
// vs.
uci.Set("pkg", "sect", uci.TypeOption, "val") |
Currently the package returns a boolean indicating success.
I've also done some minor tweaks for readability and adhering to conventions.