From 45221226aabf5143f3b8bd95671e0de2868ae1bf Mon Sep 17 00:00:00 2001 From: Tobias Pfandzelter Date: Tue, 5 May 2020 12:47:35 +0200 Subject: [PATCH] Update for Go modules `gvt` is deprecated, Go modules are the way to go. Fortunately `go mod` understands `gvt` manifests so building the project is easy now. Fixes #32 and #33 --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 61717df..b7c45f2 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,15 @@ Checkout the API Spec [here](http://microservices-demo.github.io/api/index?url=h ## Build #### Dependencies + +This project uses `gvt` for dependency management, which is outdated. +Instead, use Go modules: + ``` -cd $GOPATH/src/github.com/microservices-demo/payment/ -go get -u github.com/FiloSottile/gvt -gvt restore +go clone https://github.com/microservices-demo/payment +cd payment/ +go mod init +go mod vendor ``` #### Using native Go tools @@ -28,7 +33,7 @@ In order to build the project locally you need to make sure that the repository $GOPATH directory: $GOPATH/src/github.com/microservices-demo/payment/. Once that is in place you can build by running: ``` -cd $GOPATH/src/github.com/microservices-demo/payment/paymentsvc/ +cd ./cmd/paymentsvc/ go build -o payment ```