Skip to content

Instantly share code, notes, and snippets.

@someword
Created January 18, 2018 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save someword/f2f9eb04ed7886e5675ce5a197e0c8dc to your computer and use it in GitHub Desktop.
Save someword/f2f9eb04ed7886e5675ce5a197e0c8dc to your computer and use it in GitHub Desktop.
compile benchmark
go get github.com/coreos/etcd
[TRUNCATED OUTPUT]
git checkout v3.2.9    master 
Note: checking out 'v3.2.9'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
cd tools/benchmark    f1d7dd8 
env GOOS=linux go build -o benchmark -v .    f1d7dd8 
../../mvcc/backend/backend.go:28:2: cannot find package "github.com/boltdb/bolt" in any of:
/usr/local/Cellar/go/1.8.3/libexec/src/github.com/boltdb/bolt (from $GOROOT)
/Users/derekolsen/tmp/gopath/src/github.com/boltdb/bolt (from $GOPATH)
cmd/lease.go:26:2: cannot find package "gopkg.in/cheggaaa/pb.v1" in any of:
/usr/local/Cellar/go/1.8.3/libexec/src/gopkg.in/cheggaaa/pb.v1 (from $GOROOT)
/Users/derekolsen/tmp/gopath/src/gopkg.in/cheggaaa/pb.v1 (from $GOPATH)
go get github.com/boltdb/bolt    f1d7dd8 
go get gopkg.in/cheggaaa/pb.v1    f1d7dd8 
env GOOS=linux go build -o benchmark -v .    f1d7dd8 
runtime/internal/sys
runtime/internal/atomic
runtime
internal/race
errors
sync/atomic
math
unicode/utf8
unicode
crypto/subtle
crypto/internal/cipherhw
container/list
internal/nettrace
vendor/golang_org/x/crypto/poly1305
vendor/golang_org/x/crypto/curve25519
sync
encoding
unicode/utf16
google.golang.org/grpc/resolver
google.golang.org/grpc/internal
google.golang.org/grpc/resolver/passthrough
io
internal/singleflight
syscall
crypto/cipher
hash
google.golang.org/grpc/encoding
crypto/hmac
hash/crc32
hash/fnv
bytes
strings
bufio
vendor/golang_org/x/text/transform
golang.org/x/text/transform
text/tabwriter
path
html
strconv
math/rand
github.com/coreos/etcd/pkg/adt
internal/syscall/unix
time
reflect
crypto/aes
crypto
crypto/rc4
encoding/base64
crypto/sha512
crypto/sha1
crypto/md5
crypto/sha256
os
github.com/coreos/etcd/pkg/monotime
google.golang.org/grpc/keepalive
golang.org/x/sys/unix
os/signal
sort
encoding/binary
fmt
runtime/debug
github.com/beorn7/perks/quantile
path/filepath
github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
encoding/pem
regexp/syntax
crypto/des
vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20
vendor/golang_org/x/crypto/chacha20poly1305
io/ioutil
context
math/big
encoding/hex
encoding/json
log
compress/flate
golang.org/x/net/http2/hpack
golang.org/x/text/unicode/norm
net
golang.org/x/net/context
golang.org/x/text/unicode/bidi
vendor/golang_org/x/net/http2/hpack
vendor/golang_org/x/net/idna
vendor/golang_org/x/text/unicode/norm
vendor/golang_org/x/text/width
compress/gzip
golang.org/x/text/secure/bidirule
mime
mime/quotedprintable
net/http/internal
net/url
golang.org/x/net/internal/timeseries
text/template/parse
github.com/golang/protobuf/proto
google.golang.org/grpc/grpclog
google.golang.org/grpc/codes
google.golang.org/grpc/metadata
google.golang.org/grpc/connectivity
google.golang.org/grpc/tap
github.com/boltdb/bolt
regexp
golang.org/x/net/idna
crypto/rand
crypto/elliptic
encoding/asn1
crypto/rsa
crypto/dsa
text/template
github.com/prometheus/common/model
github.com/prometheus/procfs/xfs
github.com/coreos/etcd/pkg/schedule
github.com/google/btree
encoding/csv
flag
github.com/coreos/etcd/pkg/report
crypto/ecdsa
crypto/x509/pkix
golang.org/x/time/rate
github.com/mattn/go-runewidth
internal/pprof/profile
gopkg.in/cheggaaa/pb.v1
github.com/coreos/etcd/auth/authpb
github.com/golang/protobuf/ptypes/any
google.golang.org/grpc/grpclb/grpc_lb_v1/messages
github.com/golang/protobuf/ptypes/duration
github.com/golang/protobuf/ptypes/timestamp
html/template
github.com/coreos/etcd/mvcc/mvccpb
google.golang.org/genproto/googleapis/rpc/status
github.com/golang/protobuf/ptypes
github.com/prometheus/client_model/go
google.golang.org/grpc/status
github.com/matttproud/golang_protobuf_extensions/pbutil
crypto/x509
vendor/golang_org/x/net/lex/httplex
golang.org/x/net/lex/httplex
net/textproto
google.golang.org/grpc/naming
google.golang.org/grpc/resolver/dns
google.golang.org/grpc/stats
github.com/coreos/go-systemd/journal
log/syslog
github.com/prometheus/procfs
github.com/spf13/pflag
github.com/coreos/pkg/capnslog
runtime/pprof/internal/protopprof
mime/multipart
runtime/pprof
crypto/tls
github.com/spf13/cobra
net/http/httptrace
google.golang.org/grpc/credentials
github.com/coreos/etcd/pkg/tlsutil
net/http
google.golang.org/grpc/balancer
google.golang.org/grpc/peer
google.golang.org/grpc/balancer/base
google.golang.org/grpc/balancer/roundrobin
golang.org/x/net/http2
net/http/httputil
golang.org/x/net/trace
expvar
github.com/prometheus/common/expfmt
github.com/coreos/etcd/pkg/transport
github.com/prometheus/client_golang/prometheus
github.com/coreos/etcd/mvcc/backend
google.golang.org/grpc/transport
google.golang.org/grpc
github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes
github.com/coreos/etcd/etcdserver/etcdserverpb
github.com/coreos/etcd/clientv3
github.com/coreos/etcd/etcdserver/api/v3lock/v3lockpb
github.com/coreos/etcd/lease/leasepb
github.com/coreos/etcd/lease
# github.com/coreos/etcd/clientv3
../../clientv3/client.go:336: undefined: metadata.NewContext
../../clientv3/lease.go:326: undefined: metadata.FromContext
github.com/coreos/etcd/mvcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment