Skip to content

Commit

Permalink
[FAB-8752] Add golang.org context to third_party protos
Browse files Browse the repository at this point in the history
Change-Id: I90c4c08b4be895a37c2ac912819010342968902c
Signed-off-by: Firas Qutishat <[email protected]>
Signed-off-by: Troy Ronda <[email protected]>
  • Loading branch information
fqutishat authored and troyronda committed Mar 9, 2018
1 parent 4664f80 commit 79d6417
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
name = "github.com/golang/protobuf"
version = "1.0.0"

[[constraint]]
name = "golang.org/x/net"
branch = "master"

[[constraint]]
name = "github.com/cloudflare/cfssl"
branch = "master"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type ClientConfig struct {
TLS tls.ClientTLSConfig
Enrollment api.EnrollmentRequest
CSR api.CSRInfo
ID core.RegistrationRequest
ID api.RegistrationRequest
Revoke api.RevocationRequest
CAInfo api.GetCAInfoRequest
CAName string `help:"Name of CA"`
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/fab/mocks/mockendorserserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ SPDX-License-Identifier: Apache-2.0
package mocks

import (
"context"
"fmt"
"net"

"github.com/golang/protobuf/proto"
"golang.org/x/net/context"
"google.golang.org/grpc"

rwsetutil "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/rwsetutil"
Expand Down
2 changes: 0 additions & 2 deletions scripts/third_party_pins/fabric/apply_upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ declare -a PROTOS_IMPORT_SUBSTS=(
's/\"github.com\/hyperledger\/fabric\/protos\/utils/\"github.com\/hyperledger\/fabric-sdk-go\/third_party\/github.com\/hyperledger\/fabric\/protos\/utils/g'
's/\"github.com\/hyperledger\/fabric\/protos\//\"github.com\/hyperledger\/fabric-sdk-go\/third_party\/github.com\/hyperledger\/fabric\/protos\//g'
's/\"github.com\/hyperledger\/fabric\//\"github.com\/hyperledger\/fabric-sdk-go\/internal\/github.com\/hyperledger\/fabric\//g'
's/\"golang.org\/x\/net\/context\"/\"context\"/g'
)
eval "INTERNAL_PATH=$THIRDPARTY_FABRIC_API_PATH TMP_PROJECT_PATH=$TMP_PROJECT_PATH IMPORT_SUBSTS=\"${PROTOS_IMPORT_SUBSTS[*]}\" $SCRIPTS_PATH/apply_fabric_protos.sh"

Expand All @@ -110,7 +109,6 @@ declare -a PROTOS_INTERNAL_IMPORT_SUBSTS=(
's/\"github.com\/hyperledger\/fabric\/protos\/utils/\"github.com\/hyperledger\/fabric-sdk-go\/third_party\/github.com\/hyperledger\/fabric\/protos\/utils/g'
's/\"github.com\/hyperledger\/fabric\/protos/\"github.com\/hyperledger\/fabric-sdk-go\/internal\/github.com\/hyperledger\/fabric\/protos/g'
's/\"github.com\/hyperledger\/fabric\//\"github.com\/hyperledger\/fabric-sdk-go\/internal\/github.com\/hyperledger\/fabric\//g'
's/\"golang.org\/x\/net\/context\"/\"context\"/g'
)
eval "INTERNAL_PATH=$THIRDPARTY_INTERNAL_FABRIC_PATH TMP_PROJECT_PATH=$TMP_PROJECT_PATH IMPORT_SUBSTS=\"${PROTOS_INTERNAL_IMPORT_SUBSTS[*]}\" $SCRIPTS_PATH/apply_fabric_protos_internal.sh"

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 79d6417

Please sign in to comment.