-
Notifications
You must be signed in to change notification settings - Fork 36
build(deps): bump github.com/ccoveille/go-safecast to v2.0.0 #574
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
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
487af9c to
66d2974
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Thank you for putting this up! We've already put through a couple of update PRs in our other repos - I like the API changes, and it only broke CI because we're pretty aggressive about deprecation warnings. It would have thrown at some point or another. And yeah I don't mind having a manual workaround for |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #574 +/- ##
==========================================
+ Coverage 39.28% 41.68% +2.40%
==========================================
Files 37 37
Lines 5448 4764 -684
==========================================
- Hits 2140 1986 -154
+ Misses 3063 2519 -544
- Partials 245 259 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I have read the CLA Document and I hereby sign the CLA
|
I have updated the PR now I have published the v2 of my lib https://github.com/ccoVeille/go-safecast/releases/tag/v2.0.0 It natively supports uintptr so I removed the int conversion, my lib now handles it |
tstirrat15
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.
Thank you for putting this through!
Description
I'm the owner of https://github.com/ccoVeille/go-safecast
I noticed your CI was broken because of my recent changes to add deprecation warning to some methods.
Note: I made some slight changes, as I update the returned value in the v2 of my lib
So I added check on the error to use zero as a fall back to replicate what would do the v1.
Working on your PR helped me to figure things, such as there is a real need for me to support uintptr
See
zed/internal/cmd/schema.go
Line 226 in 022f31a
Testing
Launched golangci-lint locally.
Please note, I checked that the gosec issue false positive is still there.
References
Related #573: fix the issue with linting reporting go-safecast deprecation warning of ToInt
Related to