Comments (3)
I forked, changed the dependency and all tests passed. I'm doing this for now in my go.mod
file:
replace github.com/golang/protobuf => github.com/golang/protobuf v1.3.5
replace google.golang.org/genproto => google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
from fieldmask-utils.
I don't think this package uses anything in particular from the protobuf package v1.4.2: you can look into the https://github.com/mennanov/fieldmask-utils/blob/master/copy.go file to see how it is used. That being said I think it's safe to downgrade to the protobuf v.1.3.5
Changing your local go.mod file is a better way of resolving the issue in my opinion rather than depending on an older version of a dependency in this package.
It's also worth running go test all
as well (as suggested at https://github.com/golang/go/wiki/Modules#how-to-upgrade-and-downgrade-dependencies) to see if this change causes any new test failures.
You may also take a look at golang/protobuf#1149
from fieldmask-utils.
We've gone with the replace
approach mentioned above. The only material change we saw was that some sub-structs were empty in 1.4.2 and nil in 1.3.5 (which for our use case was a immaterial change). Thanks for linking to 1149 - I see that other folks have hit the same performance issue.
from fieldmask-utils.
Related Issues (20)
- Preserve field values in dst HOT 3
- question: any way to conver Mask to MaskInverse? HOT 3
- Question: Is there a way to validate Mask fields are correct? HOT 1
- Error introduced upgrading to bazel_rules_go HOT 2
- Unexpected copy results when mask is empty HOT 1
- Example using oneof fields and StructToStruct HOT 7
- Not copying anypb correctly? HOT 1
- CamelCase func in docs is now deprecated HOT 1
- nil slice in src not working HOT 1
- not support time.Time HOT 5
- empty slice HOT 1
- feat: support protobuf wrapper values for get the value directly. HOT 1
- *int64 panic HOT 3
- Why not support mapToStruct? HOT 1
- What I set is NOT what I get ??? HOT 2
- whether add Option SrcTag() for copy from src tag HOT 2
- question: Is it possible to map from a struct to an identical struct with pointer fields? HOT 1
- Convert protobuf message to map after applying a field mask doesn't work HOT 6
- Ambiguous merging of nullable structs with StructToStruct HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fieldmask-utils.