-
Notifications
You must be signed in to change notification settings - Fork 173
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
Logrus import case sensitive patch (#8263) #8264
base: master
Are you sure you want to change the base?
Conversation
Thanks for the pull request! Compatibility with vgo certainly seems like a good goal to work towards. I would expect that we have other minor compatibility issues with newer versions of Go which may also need to be fixed — have you encountered any? It would be good to verify that we have appropriately-prioritized issues tracking those.
With this commit (805f623), the version of I think it'd be even better to upgrade the vendored version of |
Thank you for taking time to review my PR. I have not encountered any other issues. My primary exposure to this project has been through the VMware Terraform provider, and in that regard this has been the only issue that has popped up. Re the renaming: I don't think the vendored logrus package source files will have incorrect imports, since I have also updated those import statements. In other words, everything under Re updating the vendored dep: That does seem like an invasive change and I was trying to avoid that. I would be up for giving it a try but I'm still trying to wrap my mind around how your CI testing is done. Without a solid understanding of how to validate breaking changes, I would prefer to avoid this. Ideally, I think it is best to avoid updating a dependency unless there is something needed from the newer version aside from a superficial change like the import path spelling. That being said, I could submit another PR with the updated logrus dep, but I don't know how dependency management is being done in this project. I didn't see any evidence of package management files (e.g. glide, dep, vgo) so I assume it is done in a manual/custom fashion. |
rename sirupsen folder to lowercase
805f623
to
cb6252c
Compare
This is helpful context, thanks!
I see that now. I think that should address my concern about imports from within the vendored package!
There's some basic information in CONTRIBUTING.md. Many issues can be found using Our CI system runs these steps, plus a variety of integration tests. Out of an abundance of caution (e.g., to avoid denial of service-style attacks), our CI system won't trigger automatically for PRs by external contributors. We don't currently have a way to whitelist contributors, but any of us would be happy to manually trigger CI for your PR though (e.g., I ran this job a few hours ago — it looks like
We use If you'd like to give this a try and see if updating the vendored library version works without much fuss, that would be awesome. If you'd rather just wrap this up as-is and have someone else investigate upgrading to a newer version, that's fine too! |
The spelling of "Sirupsen" is changed to "sirupsen" to avoid dependency management issues with vgo when vic is imported into other projects that use newer version of logrus.
See related issue: golang/go#26208