Skip to content

Commit

Permalink
fix(weaver-go-sk): change protos-go dependency to fabric-protos-go-apiv2
Browse files Browse the repository at this point in the history
    * Added a script to manually change go package names inside fabric-protos
    * Added more unit and build tests covering all go modules
    * Added tools/go-mod-tidy.sh script to fix go.mod by running go mod tidy

Signed-off-by: Sandeep Nishad <[email protected]>
  • Loading branch information
sandeepnRES committed May 21, 2024
1 parent a320616 commit b1b653a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/go-mod-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# Root of repo
ROOT_DIR=${1:-'..'}

# Repo full go path
REPO='github.com/hyperledger/cacti'

GOMODULE_PATHS=("weaver/core/network/fabric-interop-cc/libs/utils"
"weaver/core/network/fabric-interop-cc/libs/assetexchange"
"weaver/core/network/fabric-interop-cc/interfaces/asset-mgmt"
Expand All @@ -24,6 +21,7 @@ for GOMODULE in ${GOMODULE_PATHS[@]}; do
pushd $ROOT_DIR/$GOMODULE > /dev/null
make run-vendor || (go mod tidy && make run-vendor)
make undo-vendor
go mod tidy
popd > /dev/null
echo "############# END $GOMODULE ################\n"
done
done

0 comments on commit b1b653a

Please sign in to comment.