-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Return not found error if setting config #2027
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
Conversation
26c31da to
f52bece
Compare
|
Is there an ETA for when this will be merged? We are waiting for this fix too. Also, what would be the release cadence for the package? Is it possible to trigger a release once this is merged? |
|
@ccoVeille Thanks for the review. Are you a maintainer, possibly able to answer @rashmichandrashekar 's question about a release? |
f52bece to
c2ae6fb
Compare
Hi, I'm not a maintainer of viper. I just reviewed thr PR because it popped out my stream of notification |
|
Paging @sagikazarmark for potential help here? |
|
Thanks @spacez320. Gentle ping @sagikazarmark - Could you pls help get this reviewed and merged or point to someone who can help? |
|
@rashmichandrashekar In the meantime, I'm happy to maintain the branch for at least a little while if you want to start using it now. |
|
Thanks @spacez320. I am planning to take these changes in another OSS repo kube-state-metrics, I will take your changes for testing, but would want this merged so that I can just take the next updated version in the other repo. Pinging a few other contributors - @spf13 @alexandear @bep @bketelsen @anthonyfok @n10v - Could any one of the recent contributors please help with this? Thanks in advance |
|
Hi, I'm not a maintainer of this repository, so I can't merge. |
Thanks! Could you pls point me to the maintainers of the repo? |
|
I sent an email to @sagikazarmark. I think we'll just have to be patient and wait for someone to respond when they have a moment. In the meantime we can also install from a fork. |
|
Just as a minor update here, am discussing with @sagikazarmark about this change and whether it should move forward, more updates soon. In the meantime, there has actually already been a thread about this with a proposed (I think reasonable) work-around that probably still works. #1491 |
sagikazarmark
left a comment
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 @spacez320 for putting in the work on this!
I had a few comments, can you please look at them?
Thanks!
|
Oh, almost forgot: would be nice to add some examples:
Either as Go examples or in the readme. (Or maybe both) |
|
@sagikazarmark Thanks for the review. I'm going to recommend we steer away from the interface implementation, as I'm not sure it serves enough of a purpose, for three reasons:
Let me know if I convinced you or you'd still really like to add the interface. Examples of new usage are added to the readme. |
Not true: https://go.dev/play/p/Y-xROTywlGD
AFAIK the original issue was not being able to catch both errors (search yields no result, file cannot be found), which is why people wanted the same error to be returned. How does adding another error fix that? |
My fault, I was overly fixated on solving my issue and not the more general one. New PR now tackles this too with the interface. Thanks for the example, as well. The thing was that tripping me up is that you have to declare an interface type before you can use it, making me assume that interfaces weren't usable in // This will work for structs but not interfaces
errors.As(err, &someErrorStruct{})
// Necessary for interfaces
var someError someErrorInterface
errors.As(err &someError) |
cdcc911 to
1d18744
Compare
sagikazarmark
left a comment
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 @spacez320 !
I pushed some fixes to your PR.
Co-authored-by: Márk Sági-Kazár <[email protected]>
Co-authored-by: Márk Sági-Kazár <[email protected]>
Signed-off-by: Mark Sagi-Kazar <[email protected]>
84f135d to
1a90a66
Compare
|
@sagikazarmark Thanks a lot for fixes. I added a tiny bit more adjustments. Hopefully it's close now. |
|
There was a mixup with branch protection rules, otherwise I would have merged it. I'll merge it once I get to a computer |
|
Apologies for sitting on this for this long. I think it's in a good shape now, so LGTM. |
Fixes #1783