-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the dependency on Jipanyang's personal repository (#345)
Microsoft ADO: 27225139 Why I did it We should not use Jipanyang's personal repo in sonic-gnmi How I did it Use google/gnxi to replace jipanyang/gnxi and update related patches How to verify it Run gnmi unit test and end to end test
- Loading branch information
Showing
11 changed files
with
307 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,8 +49,8 @@ go.mod: | |
|
||
$(GO_DEPS): go.mod $(PATCHES) swsscommon_wrap | ||
$(GO) mod vendor | ||
$(GO) mod download github.com/jipanyang/[email protected]20181221084354-f0a90cca6fd0 | ||
cp -r $(GOPATH)/pkg/mod/github.com/jipanyang/[email protected]20181221084354-f0a90cca6fd0/* vendor/github.com/jipanyang/gnxi/ | ||
$(GO) mod download github.com/google/[email protected]20181220173256-89f51f0ce1e2 | ||
cp -r $(GOPATH)/pkg/mod/github.com/google/[email protected]20181220173256-89f51f0ce1e2/* vendor/github.com/google/gnxi/ | ||
|
||
# Apply patch from sonic-mgmt-common, ignore glog.patch because glog version changed | ||
sed -i 's/patch -d $${DEST_DIR}\/github.com\/golang\/glog/\#patch -d $${DEST_DIR}\/github.com\/golang\/glog/g' $(MGMT_COMMON_DIR)/patches/apply.sh | ||
|
@@ -103,12 +103,12 @@ endif | |
git apply patches/0001-Updated-to-filter-and-write-to-file.patch | ||
|
||
ifeq ($(CROSS_BUILD_ENVIRON),y) | ||
$(GO) build -o ${GOBIN}/gnmi_get -mod=vendor github.com/jipanyang/gnxi/gnmi_get | ||
$(GO) build -o ${GOBIN}/gnmi_set -mod=vendor github.com/jipanyang/gnxi/gnmi_set | ||
$(GO) build -o ${GOBIN}/gnmi_get -mod=vendor github.com/google/gnxi/gnmi_get | ||
$(GO) build -o ${GOBIN}/gnmi_set -mod=vendor github.com/google/gnxi/gnmi_set | ||
$(GO) build -o ${GOBIN}/gnmi_cli -mod=vendor github.com/openconfig/gnmi/cmd/gnmi_cli | ||
else | ||
$(GO) install -mod=vendor github.com/jipanyang/gnxi/gnmi_get | ||
$(GO) install -mod=vendor github.com/jipanyang/gnxi/gnmi_set | ||
$(GO) install -mod=vendor github.com/google/gnxi/gnmi_get | ||
$(GO) install -mod=vendor github.com/google/gnxi/gnmi_set | ||
$(GO) install -mod=vendor github.com/openconfig/gnmi/cmd/gnmi_cli | ||
endif | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.