Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Update for Go modules #36

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,23 @@ 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
git clone https://github.com/microservices-demo/payment
cd payment/
go mod init
go mod vendor
```

#### Using native Go tools
In order to build the project locally you need to make sure that the repository directory is located in the correct
$GOPATH directory: $GOPATH/src/github.com/microservices-demo/payment/. Once that is in place you can build by running:
#### Compile

You can compile by running:

```
cd $GOPATH/src/github.com/microservices-demo/payment/paymentsvc/
cd ./cmd/paymentsvc/
go build -o payment
```

Expand Down