Skip to content

Instantly share code, notes, and snippets.

@RealDeanZhao
Created August 6, 2018 08:23
Show Gist options
  • Save RealDeanZhao/1e8dcfb9445dc9338b64de91a3fd122f to your computer and use it in GitHub Desktop.
Save RealDeanZhao/1e8dcfb9445dc9338b64de91a3fd122f to your computer and use it in GitHub Desktop.
Use sawtooth-sdk-go on Mac.md

get sawtooth-sdk-go

go get -u github.com/hyperledger/sawtooth-sdk-go

change gen.sh

From:

sed -i "s|\"protobuf/|\"${repourl}/protobuf/|" "$file"

To:

sed -i "" "s|\"protobuf/|\"${repourl}/protobuf/|" "$file"

install zeromq

brew install zeromq

install go deps

go get -u \
    github.com/btcsuite/btcd/btcec \
    github.com/golang/protobuf/proto \
    github.com/golang/protobuf/protoc-gen-go \
    github.com/golang/mock/gomock \
    github.com/golang/mock/mockgen \
    github.com/pebbe/zmq4 \
    github.com/satori/go.uuid

protogen

cd $GOPATH/src/github.com/hyperledger/sawtooth-sdk-go
go generate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment