specify GO111MODLE state in readme, explicitly use GO111MODULE=on in make build

This commit is contained in:
Ian Norden 2020-08-07 23:09:44 -05:00
parent 7b0b613b92
commit 4d4e5eb029
2 changed files with 3 additions and 5 deletions

View File

@ -76,7 +76,7 @@ integrationtest: | $(GINKGO) $(LINT)
build:
go fmt ./...
go build
GO111MODULE=on go build
# Parameter checks
## Check that DB variables are provided

View File

@ -88,7 +88,7 @@ Skip this step if you already have access to a node that displays the statediffi
Begin by downloading geth and switching to the statediffing branch:
`go get github.com/ethereum/go-ethereum`
`GO111MODULE=off go get -d github.com/ethereum/go-ethereum`
`cd $GOPATH/src/github.com/ethereum/go-ethereum`
@ -135,7 +135,7 @@ Finally, setup the watcher process itself.
Start by downloading ipfs-blockchain-watcher and moving into the repo:
`go get github.com/vulcanize/ipfs-blockchain-watcher`
`GO111MODULE=off go get -d github.com/vulcanize/ipfs-blockchain-watcher`
`cd $GOPATH/src/github.com/vulcanize/ipfs-blockchain-watcher`
@ -143,8 +143,6 @@ Then, build the binary:
`make build`
Note: go modules needs to be turned on `export GO111MODULE=on`
## Usage
After building the binary, run as