-
Notifications
You must be signed in to change notification settings - Fork 63
Refactor fabric imports #1110
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
Refactor fabric imports #1110
Conversation
a5e4044 to
41464a2
Compare
This commit moves the utility functions imported from fabric into the local package, including tests. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
2952587 to
6cce9ea
Compare
|
Great effort, @mbrandenburger . Very useful. One suggestion: Could we move Thanks. |
adecaro
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.
LGTM
This commit bundles the dependency on prototuils imported from fabric in a single package. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
This commit moves the discovery client imported from fabric into a local package, including tests. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
This commit moves the rwsetutils imported from fabric into a local package, including tests. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
This commit adds UnmarshalConfigEnvelope to our local protoutils Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
This commit moves common/channelconfig imported from fabric into a local package, including tests. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
5091465 to
d841d6e
Compare
@adecaro good idea - I moved the packages as you suggested. |
This commit moves msp imported from fabric into a local package, including tests. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
This commit moves protoutils imported from fabric into a local package, including tests. Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
d841d6e to
359e531
Compare
AkramBitar
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.
So far so good :-)
LGTM
SaidAltury-ibm
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.
Great effort @mbrandenburger! LGTM
This PR reduces FSC’s dependency on
github.com/hyperledger/fabricby refactoring and moving the required Fabric code intoplatform/fabric. Fabric is not designed or versioned as a reusable Go library, and depending on its internal packages introduces instability, misleading dependency alerts, and maintenance challenges.By internalizing the required functionality, FSC gains fine-grained control over the code it depends on, at the cost of needing to explicitly track and maintain compatibility with Fabric protocol changes. This is a deliberate trade-off.
Additionally, removing direct Fabric dependencies eliminates false-positive Dependabot alerts caused by Fabric’s non-semantic Go module versioning, which incorrectly associates current Fabric releases with older versions such as 1.4 or 2.2.
TODOs: