From 3323194b6682347314f073bcf204639cf1393d39 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sat, 24 Jun 2017 11:04:55 +0800 Subject: [PATCH 01/21] vm _vendor to vendor --- vendor/github.com/Sirupsen/logrus/BUILD.bazel | 32 ++++++++++++ .../github.com/Sirupsen/logrus/LICENSE | 0 .../github.com/Sirupsen/logrus/alt_exit.go | 0 .../github.com/Sirupsen/logrus/doc.go | 0 .../github.com/Sirupsen/logrus/entry.go | 0 .../github.com/Sirupsen/logrus/exported.go | 0 .../github.com/Sirupsen/logrus/formatter.go | 0 .../github.com/Sirupsen/logrus/hooks.go | 0 .../Sirupsen/logrus/json_formatter.go | 0 .../github.com/Sirupsen/logrus/logger.go | 0 .../github.com/Sirupsen/logrus/logrus.go | 0 .../Sirupsen/logrus/terminal_appengine.go | 0 .../Sirupsen/logrus/terminal_bsd.go | 0 .../Sirupsen/logrus/terminal_linux.go | 0 .../Sirupsen/logrus/terminal_notwindows.go | 0 .../Sirupsen/logrus/terminal_solaris.go | 0 .../Sirupsen/logrus/terminal_windows.go | 0 .../Sirupsen/logrus/text_formatter.go | 0 .../github.com/Sirupsen/logrus/writer.go | 0 .../github.com/beorn7/perks/LICENSE | 0 .../beorn7/perks/quantile/BUILD.bazel | 7 +++ .../beorn7/perks/quantile/stream.go | 0 vendor/github.com/boltdb/bolt/BUILD.bazel | 32 ++++++++++++ .../github.com/boltdb/bolt/LICENSE | 0 .../github.com/boltdb/bolt/bolt_386.go | 0 .../github.com/boltdb/bolt/bolt_amd64.go | 0 .../github.com/boltdb/bolt/bolt_arm.go | 0 .../github.com/boltdb/bolt/bolt_arm64.go | 0 .../github.com/boltdb/bolt/bolt_linux.go | 0 .../github.com/boltdb/bolt/bolt_openbsd.go | 0 .../github.com/boltdb/bolt/bolt_ppc.go | 0 .../github.com/boltdb/bolt/bolt_ppc64.go | 0 .../github.com/boltdb/bolt/bolt_ppc64le.go | 0 .../github.com/boltdb/bolt/bolt_s390x.go | 0 .../github.com/boltdb/bolt/bolt_unix.go | 0 .../boltdb/bolt/bolt_unix_solaris.go | 0 .../github.com/boltdb/bolt/bolt_windows.go | 0 .../github.com/boltdb/bolt/boltsync_unix.go | 0 .../github.com/boltdb/bolt/bucket.go | 0 .../github.com/boltdb/bolt/cursor.go | 0 .../github.com/boltdb/bolt/db.go | 0 .../github.com/boltdb/bolt/doc.go | 0 .../github.com/boltdb/bolt/errors.go | 0 .../github.com/boltdb/bolt/freelist.go | 0 .../github.com/boltdb/bolt/node.go | 0 .../github.com/boltdb/bolt/page.go | 0 .../github.com/boltdb/bolt/tx.go | 0 .../github.com/coreos/etcd/LICENSE | 0 .../github.com/coreos/etcd/NOTICE | 0 .../coreos/etcd/auth/authpb/BUILD.bazel | 8 +++ .../coreos/etcd/auth/authpb/auth.pb.go | 0 .../coreos/etcd/clientv3/BUILD.bazel | 37 ++++++++++++++ .../github.com/coreos/etcd/clientv3/auth.go | 0 .../coreos/etcd/clientv3/balancer.go | 0 .../github.com/coreos/etcd/clientv3/client.go | 0 .../coreos/etcd/clientv3/cluster.go | 0 .../coreos/etcd/clientv3/compact_op.go | 0 .../coreos/etcd/clientv3/compare.go | 0 .../etcd/clientv3/concurrency/BUILD.bazel | 20 ++++++++ .../coreos/etcd/clientv3/concurrency/doc.go | 0 .../etcd/clientv3/concurrency/election.go | 0 .../coreos/etcd/clientv3/concurrency/key.go | 0 .../coreos/etcd/clientv3/concurrency/mutex.go | 0 .../etcd/clientv3/concurrency/session.go | 0 .../coreos/etcd/clientv3/concurrency/stm.go | 0 .../github.com/coreos/etcd/clientv3/config.go | 0 .../github.com/coreos/etcd/clientv3/doc.go | 0 .../github.com/coreos/etcd/clientv3/kv.go | 0 .../github.com/coreos/etcd/clientv3/lease.go | 0 .../github.com/coreos/etcd/clientv3/logger.go | 0 .../coreos/etcd/clientv3/maintenance.go | 0 .../github.com/coreos/etcd/clientv3/op.go | 0 .../github.com/coreos/etcd/clientv3/retry.go | 0 .../github.com/coreos/etcd/clientv3/sort.go | 0 .../github.com/coreos/etcd/clientv3/txn.go | 0 .../github.com/coreos/etcd/clientv3/watch.go | 0 .../etcdserver/api/v3rpc/rpctypes/BUILD.bazel | 15 ++++++ .../etcd/etcdserver/api/v3rpc/rpctypes/doc.go | 0 .../etcdserver/api/v3rpc/rpctypes/error.go | 0 .../etcd/etcdserver/api/v3rpc/rpctypes/md.go | 0 .../etcd/etcdserver/etcdserverpb/BUILD.bazel | 23 +++++++++ .../etcdserver/etcdserverpb/etcdserver.pb.go | 0 .../etcdserverpb/raft_internal.pb.go | 0 .../etcd/etcdserver/etcdserverpb/rpc.pb.go | 0 .../etcd/etcdserver/etcdserverpb/rpc.pb.gw.go | 0 .../coreos/etcd/mvcc/mvccpb/BUILD.bazel | 8 +++ .../coreos/etcd/mvcc/mvccpb/kv.pb.go | 0 .../coreos/etcd/pkg/monotime/BUILD.bazel | 11 +++++ .../coreos/etcd/pkg/monotime/issue15006.s | 0 .../coreos/etcd/pkg/monotime/monotime.go | 0 .../coreos/etcd/pkg/monotime/nanotime.go | 0 .../github.com/cznic/golex/LICENSE | 0 vendor/github.com/cznic/golex/lex/BUILD.bazel | 10 ++++ .../github.com/cznic/golex/lex/api.go | 0 .../github.com/cznic/golex/lex/doc.go | 0 vendor/github.com/cznic/mathutil/BUILD.bazel | 17 +++++++ .../github.com/cznic/mathutil/LICENSE | 0 .../github.com/cznic/mathutil/bits.go | 0 .../github.com/cznic/mathutil/envelope.go | 0 .../github.com/cznic/mathutil/mathutil.go | 0 .../github.com/cznic/mathutil/permute.go | 0 .../github.com/cznic/mathutil/primes.go | 0 .../github.com/cznic/mathutil/rat.go | 0 .../github.com/cznic/mathutil/rnd.go | 0 .../github.com/cznic/mathutil/tables.go | 0 .../github.com/cznic/mathutil/test_deps.go | 0 .../github.com/cznic/parser/yacc/BUILD.bazel | 18 +++++++ .../github.com/cznic/parser/yacc/LICENSE | 0 .../github.com/cznic/parser/yacc/api.go | 0 .../github.com/cznic/parser/yacc/ast.go | 0 .../github.com/cznic/parser/yacc/generate.go | 0 .../github.com/cznic/parser/yacc/goscanner.go | 0 .../github.com/cznic/parser/yacc/lexer.go | 0 .../github.com/cznic/parser/yacc/parser.go | 0 .../github.com/cznic/parser/yacc/scanner.go | 0 vendor/github.com/cznic/sortutil/BUILD.bazel | 7 +++ .../github.com/cznic/sortutil/LICENSE | 0 .../github.com/cznic/sortutil/sortutil.go | 0 vendor/github.com/cznic/strutil/BUILD.bazel | 7 +++ .../github.com/cznic/strutil/LICENSE | 0 .../github.com/cznic/strutil/strutil.go | 0 vendor/github.com/cznic/y/BUILD.bazel | 15 ++++++ .../src => vendor}/github.com/cznic/y/LICENSE | 0 .../src => vendor}/github.com/cznic/y/api.go | 0 .../src => vendor}/github.com/cznic/y/y.go | 0 .../go-sql-driver/mysql/BUILD.bazel | 21 ++++++++ .../github.com/go-sql-driver/mysql/LICENSE | 0 .../go-sql-driver/mysql/appengine.go | 0 .../github.com/go-sql-driver/mysql/buffer.go | 0 .../go-sql-driver/mysql/collations.go | 0 .../go-sql-driver/mysql/connection.go | 0 .../github.com/go-sql-driver/mysql/const.go | 0 .../github.com/go-sql-driver/mysql/driver.go | 0 .../github.com/go-sql-driver/mysql/errors.go | 0 .../github.com/go-sql-driver/mysql/infile.go | 0 .../github.com/go-sql-driver/mysql/packets.go | 0 .../github.com/go-sql-driver/mysql/result.go | 0 .../github.com/go-sql-driver/mysql/rows.go | 0 .../go-sql-driver/mysql/statement.go | 0 .../go-sql-driver/mysql/transaction.go | 0 .../github.com/go-sql-driver/mysql/utils.go | 0 .../github.com/golang/protobuf/LICENSE | 0 .../golang/protobuf/jsonpb/BUILD.bazel | 8 +++ .../golang/protobuf/jsonpb/jsonpb.go | 0 .../golang/protobuf/proto/BUILD.bazel | 19 +++++++ .../github.com/golang/protobuf/proto/clone.go | 0 .../golang/protobuf/proto/decode.go | 0 .../golang/protobuf/proto/encode.go | 0 .../github.com/golang/protobuf/proto/equal.go | 0 .../golang/protobuf/proto/extensions.go | 0 .../github.com/golang/protobuf/proto/lib.go | 0 .../golang/protobuf/proto/message_set.go | 0 .../golang/protobuf/proto/pointer_reflect.go | 0 .../golang/protobuf/proto/pointer_unsafe.go | 0 .../golang/protobuf/proto/properties.go | 0 .../github.com/golang/protobuf/proto/text.go | 0 .../golang/protobuf/proto/text_parser.go | 0 .../golang/protobuf/ptypes/any/BUILD.bazel | 8 +++ .../golang/protobuf/ptypes/any/any.pb.go | 0 vendor/github.com/golang/snappy/BUILD.bazel | 11 +++++ .../github.com/golang/snappy/LICENSE | 0 .../github.com/golang/snappy/decode.go | 0 .../github.com/golang/snappy/encode.go | 0 .../github.com/golang/snappy/snappy.go | 0 vendor/github.com/gorilla/context/BUILD.bazel | 10 ++++ .../github.com/gorilla/context/LICENSE | 0 .../github.com/gorilla/context/context.go | 0 .../github.com/gorilla/context/doc.go | 0 vendor/github.com/gorilla/mux/BUILD.bazel | 13 +++++ .../github.com/gorilla/mux/LICENSE | 0 .../github.com/gorilla/mux/context_gorilla.go | 0 .../github.com/gorilla/mux/context_native.go | 0 .../github.com/gorilla/mux/doc.go | 0 .../github.com/gorilla/mux/mux.go | 0 .../github.com/gorilla/mux/regexp.go | 0 .../github.com/gorilla/mux/route.go | 0 .../go-grpc-prometheus/BUILD.bazel | 19 +++++++ .../grpc-ecosystem/go-grpc-prometheus/LICENSE | 0 .../go-grpc-prometheus/client.go | 0 .../go-grpc-prometheus/client_reporter.go | 0 .../go-grpc-prometheus/server.go | 0 .../go-grpc-prometheus/server_reporter.go | 0 .../grpc-ecosystem/go-grpc-prometheus/util.go | 0 .../grpc-ecosystem/grpc-gateway/LICENSE.txt | 0 .../grpc-gateway/runtime/BUILD.bazel | 32 ++++++++++++ .../grpc-gateway/runtime/context.go | 0 .../grpc-gateway/runtime/convert.go | 0 .../grpc-gateway/runtime/doc.go | 0 .../grpc-gateway/runtime/errors.go | 0 .../grpc-gateway/runtime/handler.go | 0 .../grpc-gateway/runtime/internal/BUILD.bazel | 8 +++ .../runtime/internal/stream_chunk.pb.go | 0 .../grpc-gateway/runtime/marshal_json.go | 0 .../grpc-gateway/runtime/marshal_jsonpb.go | 0 .../grpc-gateway/runtime/marshaler.go | 0 .../runtime/marshaler_registry.go | 0 .../grpc-gateway/runtime/mux.go | 0 .../grpc-gateway/runtime/pattern.go | 0 .../grpc-gateway/runtime/proto2_convert.go | 0 .../grpc-gateway/runtime/query.go | 0 .../grpc-gateway/utilities/BUILD.bazel | 11 +++++ .../grpc-gateway/utilities/doc.go | 0 .../grpc-gateway/utilities/pattern.go | 0 .../grpc-gateway/utilities/trie.go | 0 vendor/github.com/juju/errors/BUILD.bazel | 13 +++++ .../github.com/juju/errors/LICENSE | 0 .../github.com/juju/errors/doc.go | 0 .../github.com/juju/errors/error.go | 0 .../github.com/juju/errors/errortypes.go | 0 .../github.com/juju/errors/functions.go | 0 .../github.com/juju/errors/path.go | 0 .../golang_protobuf_extensions/LICENSE | 0 .../golang_protobuf_extensions/NOTICE | 0 .../pbutil/BUILD.bazel | 12 +++++ .../pbutil/decode.go | 0 .../golang_protobuf_extensions/pbutil/doc.go | 0 .../pbutil/encode.go | 0 vendor/github.com/ngaut/log/BUILD.bazel | 20 ++++++++ .../github.com/ngaut/log/LICENSE | 0 .../github.com/ngaut/log/crash_unix.go | 0 .../github.com/ngaut/log/crash_win.go | 0 .../github.com/ngaut/log/log.go | 0 vendor/github.com/ngaut/pools/BUILD.bazel | 13 +++++ .../github.com/ngaut/pools/id_pool.go | 0 .../github.com/ngaut/pools/numbered.go | 0 .../github.com/ngaut/pools/resource_pool.go | 0 .../github.com/ngaut/pools/roundrobin.go | 0 vendor/github.com/ngaut/sync2/BUILD.bazel | 12 +++++ .../github.com/ngaut/sync2/atomic.go | 0 .../github.com/ngaut/sync2/cond.go | 0 .../github.com/ngaut/sync2/semaphore.go | 0 .../github.com/ngaut/sync2/service_manager.go | 0 .../github.com/ngaut/systimemon/BUILD.bazel | 8 +++ .../github.com/ngaut/systimemon/LICENSE | 0 .../ngaut/systimemon/systime_mon.go | 0 .../github.com/petar/GoLLRB/LICENSE | 0 .../github.com/petar/GoLLRB/llrb/BUILD.bazel | 13 +++++ .../github.com/petar/GoLLRB/llrb/avgvar.go | 0 .../github.com/petar/GoLLRB/llrb/iterator.go | 0 .../petar/GoLLRB/llrb/llrb-stats.go | 0 .../github.com/petar/GoLLRB/llrb/llrb.go | 0 .../github.com/petar/GoLLRB/llrb/util.go | 0 vendor/github.com/pingcap/check/BUILD.bazel | 16 ++++++ .../github.com/pingcap/check/benchmark.go | 0 .../github.com/pingcap/check/check.go | 0 .../github.com/pingcap/check/checkers.go | 0 .../github.com/pingcap/check/checkers2.go | 0 .../github.com/pingcap/check/compare.go | 0 .../github.com/pingcap/check/helpers.go | 0 .../github.com/pingcap/check/printer.go | 0 .../github.com/pingcap/check/run.go | 0 .../github.com/pingcap/goleveldb/LICENSE | 0 .../pingcap/goleveldb/leveldb/BUILD.bazel | 43 ++++++++++++++++ .../pingcap/goleveldb/leveldb/batch.go | 0 .../goleveldb/leveldb/cache/BUILD.bazel | 11 +++++ .../pingcap/goleveldb/leveldb/cache/cache.go | 0 .../pingcap/goleveldb/leveldb/cache/lru.go | 0 .../pingcap/goleveldb/leveldb/comparer.go | 0 .../goleveldb/leveldb/comparer/BUILD.bazel | 10 ++++ .../leveldb/comparer/bytes_comparer.go | 0 .../goleveldb/leveldb/comparer/comparer.go | 0 .../pingcap/goleveldb/leveldb/db.go | 0 .../goleveldb/leveldb/db_compaction.go | 0 .../pingcap/goleveldb/leveldb/db_iter.go | 0 .../pingcap/goleveldb/leveldb/db_snapshot.go | 0 .../pingcap/goleveldb/leveldb/db_state.go | 0 .../goleveldb/leveldb/db_transaction.go | 0 .../pingcap/goleveldb/leveldb/db_util.go | 0 .../pingcap/goleveldb/leveldb/db_write.go | 0 .../pingcap/goleveldb/leveldb/doc.go | 0 .../pingcap/goleveldb/leveldb/errors.go | 0 .../goleveldb/leveldb/errors/BUILD.bazel | 11 +++++ .../goleveldb/leveldb/errors/errors.go | 0 .../pingcap/goleveldb/leveldb/filter.go | 0 .../goleveldb/leveldb/filter/BUILD.bazel | 11 +++++ .../pingcap/goleveldb/leveldb/filter/bloom.go | 0 .../goleveldb/leveldb/filter/filter.go | 0 .../goleveldb/leveldb/iterator/BUILD.bazel | 17 +++++++ .../goleveldb/leveldb/iterator/array_iter.go | 0 .../leveldb/iterator/indexed_iter.go | 0 .../goleveldb/leveldb/iterator/iter.go | 0 .../goleveldb/leveldb/iterator/merged_iter.go | 0 .../goleveldb/leveldb/journal/BUILD.bazel | 12 +++++ .../goleveldb/leveldb/journal/journal.go | 0 .../pingcap/goleveldb/leveldb/key.go | 0 .../goleveldb/leveldb/memdb/BUILD.bazel | 13 +++++ .../pingcap/goleveldb/leveldb/memdb/memdb.go | 0 .../pingcap/goleveldb/leveldb/opt/BUILD.bazel | 12 +++++ .../pingcap/goleveldb/leveldb/opt/options.go | 0 .../pingcap/goleveldb/leveldb/options.go | 0 .../pingcap/goleveldb/leveldb/session.go | 0 .../goleveldb/leveldb/session_compaction.go | 0 .../goleveldb/leveldb/session_record.go | 0 .../pingcap/goleveldb/leveldb/session_util.go | 0 .../goleveldb/leveldb/storage/BUILD.bazel | 23 +++++++++ .../goleveldb/leveldb/storage/file_storage.go | 0 .../leveldb/storage/file_storage_nacl.go | 0 .../leveldb/storage/file_storage_plan9.go | 0 .../leveldb/storage/file_storage_solaris.go | 0 .../leveldb/storage/file_storage_unix.go | 0 .../leveldb/storage/file_storage_windows.go | 0 .../goleveldb/leveldb/storage/mem_storage.go | 0 .../goleveldb/leveldb/storage/storage.go | 0 .../pingcap/goleveldb/leveldb/table.go | 0 .../goleveldb/leveldb/table/BUILD.bazel | 22 +++++++++ .../pingcap/goleveldb/leveldb/table/reader.go | 0 .../pingcap/goleveldb/leveldb/table/table.go | 0 .../pingcap/goleveldb/leveldb/table/writer.go | 0 .../pingcap/goleveldb/leveldb/util.go | 0 .../goleveldb/leveldb/util/BUILD.bazel | 14 ++++++ .../pingcap/goleveldb/leveldb/util/buffer.go | 0 .../goleveldb/leveldb/util/buffer_pool.go | 0 .../pingcap/goleveldb/leveldb/util/crc32.go | 0 .../pingcap/goleveldb/leveldb/util/hash.go | 0 .../pingcap/goleveldb/leveldb/util/range.go | 0 .../pingcap/goleveldb/leveldb/util/util.go | 0 .../pingcap/goleveldb/leveldb/version.go | 0 .../kvproto/pkg/coprocessor/BUILD.bazel | 13 +++++ .../kvproto/pkg/coprocessor/coprocessor.pb.go | 0 .../pingcap/kvproto/pkg/eraftpb/BUILD.bazel | 8 +++ .../pingcap/kvproto/pkg/eraftpb/eraftpb.pb.go | 0 .../pingcap/kvproto/pkg/errorpb/BUILD.bazel | 11 +++++ .../pingcap/kvproto/pkg/errorpb/errorpb.pb.go | 0 .../pingcap/kvproto/pkg/kvrpcpb/BUILD.bazel | 12 +++++ .../pingcap/kvproto/pkg/kvrpcpb/kvrpcpb.pb.go | 0 .../pingcap/kvproto/pkg/metapb/BUILD.bazel | 8 +++ .../pingcap/kvproto/pkg/metapb/metapb.pb.go | 0 .../pingcap/kvproto/pkg/pdpb/BUILD.bazel | 13 +++++ .../pingcap/kvproto/pkg/pdpb/pdpb.pb.go | 0 .../kvproto/pkg/raft_serverpb/BUILD.bazel | 12 +++++ .../pkg/raft_serverpb/raft_serverpb.pb.go | 0 .../pingcap/kvproto/pkg/tikvpb/BUILD.bazel | 15 ++++++ .../pingcap/kvproto/pkg/tikvpb/tikvpb.pb.go | 0 .../github.com/pingcap/pd/LICENSE | 0 .../pingcap/pd/pd-client/BUILD.bazel | 19 +++++++ .../github.com/pingcap/pd/pd-client/client.go | 0 .../pingcap/pd/pd-client/metrics.go | 0 .../github.com/pingcap/tipb/LICENSE | 0 .../pingcap/tipb/go-binlog/BUILD.bazel | 16 ++++++ .../pingcap/tipb/go-binlog/binlog.pb.go | 0 .../pingcap/tipb/go-binlog/cistern.pb.go | 0 .../pingcap/tipb/go-binlog/pump.pb.go | 0 .../pingcap/tipb/go-tipb/BUILD.bazel | 16 ++++++ .../pingcap/tipb/go-tipb/executor.pb.go | 0 .../pingcap/tipb/go-tipb/expression.pb.go | 0 .../pingcap/tipb/go-tipb/schema.pb.go | 0 .../pingcap/tipb/go-tipb/select.pb.go | 0 .../pingcap/tipb/sharedbytes/BUILD.bazel | 7 +++ .../pingcap/tipb/sharedbytes/sharedbytes.go | 0 .../prometheus/client_golang/LICENSE | 0 .../prometheus/client_golang/NOTICE | 0 .../client_golang/prometheus/BUILD.bazel | 33 +++++++++++++ .../client_golang/prometheus/collector.go | 0 .../client_golang/prometheus/counter.go | 0 .../client_golang/prometheus/desc.go | 0 .../client_golang/prometheus/doc.go | 0 .../prometheus/expvar_collector.go | 0 .../client_golang/prometheus/fnv.go | 0 .../client_golang/prometheus/gauge.go | 0 .../client_golang/prometheus/go_collector.go | 0 .../client_golang/prometheus/histogram.go | 0 .../client_golang/prometheus/http.go | 0 .../client_golang/prometheus/metric.go | 0 .../prometheus/process_collector.go | 0 .../client_golang/prometheus/push/BUILD.bazel | 12 +++++ .../client_golang/prometheus/push/push.go | 0 .../client_golang/prometheus/registry.go | 0 .../client_golang/prometheus/summary.go | 0 .../client_golang/prometheus/untyped.go | 0 .../client_golang/prometheus/value.go | 0 .../client_golang/prometheus/vec.go | 0 .../prometheus/client_model/LICENSE | 0 .../github.com/prometheus/client_model/NOTICE | 0 .../prometheus/client_model/go/BUILD.bazel | 8 +++ .../prometheus/client_model/go/metrics.pb.go | 0 .../github.com/prometheus/common/LICENSE | 0 .../github.com/prometheus/common/NOTICE | 0 .../prometheus/common/expfmt/BUILD.bazel | 20 ++++++++ .../prometheus/common/expfmt/decode.go | 0 .../prometheus/common/expfmt/encode.go | 0 .../prometheus/common/expfmt/expfmt.go | 0 .../prometheus/common/expfmt/fuzz.go | 0 .../prometheus/common/expfmt/text_create.go | 0 .../prometheus/common/expfmt/text_parse.go | 0 .../bitbucket.org/ww/goautoneg/BUILD.bazel | 7 +++ .../bitbucket.org/ww/goautoneg/autoneg.go | 0 .../prometheus/common/model/BUILD.bazel | 19 +++++++ .../prometheus/common/model/alert.go | 0 .../prometheus/common/model/fingerprinting.go | 0 .../github.com/prometheus/common/model/fnv.go | 0 .../prometheus/common/model/labels.go | 0 .../prometheus/common/model/labelset.go | 0 .../prometheus/common/model/metric.go | 0 .../prometheus/common/model/model.go | 0 .../prometheus/common/model/signature.go | 0 .../prometheus/common/model/silence.go | 0 .../prometheus/common/model/time.go | 0 .../prometheus/common/model/value.go | 0 .../github.com/prometheus/procfs/BUILD.bazel | 17 +++++++ .../github.com/prometheus/procfs/LICENSE | 0 .../github.com/prometheus/procfs/NOTICE | 0 .../github.com/prometheus/procfs/doc.go | 0 .../github.com/prometheus/procfs/fs.go | 0 .../github.com/prometheus/procfs/ipvs.go | 0 .../github.com/prometheus/procfs/mdstat.go | 0 .../github.com/prometheus/procfs/proc.go | 0 .../github.com/prometheus/procfs/proc_io.go | 0 .../prometheus/procfs/proc_limits.go | 0 .../github.com/prometheus/procfs/proc_stat.go | 0 .../github.com/prometheus/procfs/stat.go | 0 vendor/github.com/twinj/uuid/BUILD.bazel | 15 ++++++ .../github.com/twinj/uuid/LICENSE | 0 .../github.com/twinj/uuid/array.go | 0 .../github.com/twinj/uuid/rfc4122.go | 0 .../github.com/twinj/uuid/saver.go | 0 .../github.com/twinj/uuid/state.go | 0 .../github.com/twinj/uuid/struct.go | 0 .../github.com/twinj/uuid/timestamp.go | 0 .../github.com/twinj/uuid/uuids.go | 0 .../src => vendor}/golang.org/x/net/LICENSE | 0 .../src => vendor}/golang.org/x/net/PATENTS | 0 vendor/golang.org/x/net/context/BUILD.bazel | 10 ++++ .../golang.org/x/net/context/context.go | 0 .../golang.org/x/net/context/go17.go | 0 .../golang.org/x/net/context/pre_go17.go | 0 vendor/golang.org/x/net/http2/BUILD.bazel | 32 ++++++++++++ .../x/net/http2/client_conn_pool.go | 0 .../x/net/http2/configure_transport.go | 0 .../golang.org/x/net/http2/databuffer.go | 0 .../golang.org/x/net/http2/errors.go | 0 .../golang.org/x/net/http2/flow.go | 0 .../golang.org/x/net/http2/frame.go | 0 .../golang.org/x/net/http2/go16.go | 0 .../golang.org/x/net/http2/go17.go | 0 .../golang.org/x/net/http2/go17_not18.go | 0 .../golang.org/x/net/http2/go18.go | 0 .../golang.org/x/net/http2/gotrack.go | 0 .../golang.org/x/net/http2/headermap.go | 0 .../golang.org/x/net/http2/hpack/BUILD.bazel | 12 +++++ .../golang.org/x/net/http2/hpack/encode.go | 0 .../golang.org/x/net/http2/hpack/hpack.go | 0 .../golang.org/x/net/http2/hpack/huffman.go | 0 .../golang.org/x/net/http2/hpack/tables.go | 0 .../golang.org/x/net/http2/http2.go | 0 .../golang.org/x/net/http2/not_go16.go | 0 .../golang.org/x/net/http2/not_go17.go | 0 .../golang.org/x/net/http2/not_go18.go | 0 .../golang.org/x/net/http2/pipe.go | 0 .../golang.org/x/net/http2/server.go | 0 .../golang.org/x/net/http2/transport.go | 0 .../golang.org/x/net/http2/write.go | 0 .../golang.org/x/net/http2/writesched.go | 0 .../x/net/http2/writesched_priority.go | 0 .../x/net/http2/writesched_random.go | 0 vendor/golang.org/x/net/idna/BUILD.bazel | 17 +++++++ .../golang.org/x/net/idna/idna.go | 0 .../golang.org/x/net/idna/punycode.go | 0 .../golang.org/x/net/idna/tables.go | 0 .../golang.org/x/net/idna/trie.go | 0 .../golang.org/x/net/idna/trieval.go | 0 .../x/net/internal/timeseries/BUILD.bazel | 7 +++ .../x/net/internal/timeseries/timeseries.go | 0 .../golang.org/x/net/lex/httplex/BUILD.bazel | 8 +++ .../golang.org/x/net/lex/httplex/httplex.go | 0 vendor/golang.org/x/net/trace/BUILD.bazel | 15 ++++++ .../golang.org/x/net/trace/events.go | 0 .../golang.org/x/net/trace/histogram.go | 0 .../golang.org/x/net/trace/trace.go | 0 .../src => vendor}/golang.org/x/sys/LICENSE | 0 .../src => vendor}/golang.org/x/sys/PATENTS | 0 vendor/golang.org/x/sys/unix/BUILD.bazel | 49 +++++++++++++++++++ .../golang.org/x/sys/unix/asm.s | 0 .../golang.org/x/sys/unix/asm_darwin_386.s | 0 .../golang.org/x/sys/unix/asm_darwin_amd64.s | 0 .../golang.org/x/sys/unix/asm_darwin_arm.s | 0 .../golang.org/x/sys/unix/asm_darwin_arm64.s | 0 .../x/sys/unix/asm_dragonfly_amd64.s | 0 .../golang.org/x/sys/unix/asm_freebsd_386.s | 0 .../golang.org/x/sys/unix/asm_freebsd_amd64.s | 0 .../golang.org/x/sys/unix/asm_freebsd_arm.s | 0 .../golang.org/x/sys/unix/asm_linux_386.s | 0 .../golang.org/x/sys/unix/asm_linux_amd64.s | 0 .../golang.org/x/sys/unix/asm_linux_arm.s | 0 .../golang.org/x/sys/unix/asm_linux_arm64.s | 0 .../golang.org/x/sys/unix/asm_linux_mips64x.s | 0 .../golang.org/x/sys/unix/asm_linux_ppc64x.s | 0 .../golang.org/x/sys/unix/asm_linux_s390x.s | 0 .../golang.org/x/sys/unix/asm_netbsd_386.s | 0 .../golang.org/x/sys/unix/asm_netbsd_amd64.s | 0 .../golang.org/x/sys/unix/asm_netbsd_arm.s | 0 .../golang.org/x/sys/unix/asm_openbsd_386.s | 0 .../golang.org/x/sys/unix/asm_openbsd_amd64.s | 0 .../golang.org/x/sys/unix/asm_solaris_amd64.s | 0 .../golang.org/x/sys/unix/bluetooth_linux.go | 0 .../golang.org/x/sys/unix/constants.go | 0 .../golang.org/x/sys/unix/env_unix.go | 0 .../golang.org/x/sys/unix/env_unset.go | 0 .../golang.org/x/sys/unix/flock.go | 0 .../x/sys/unix/flock_linux_32bit.go | 0 .../golang.org/x/sys/unix/gccgo.go | 0 .../golang.org/x/sys/unix/gccgo_c.c | 0 .../x/sys/unix/gccgo_linux_amd64.go | 0 .../golang.org/x/sys/unix/mkpost.go | 0 .../golang.org/x/sys/unix/race.go | 0 .../golang.org/x/sys/unix/race0.go | 0 .../golang.org/x/sys/unix/sockcmsg_linux.go | 0 .../golang.org/x/sys/unix/sockcmsg_unix.go | 0 .../golang.org/x/sys/unix/str.go | 0 .../golang.org/x/sys/unix/syscall.go | 0 .../golang.org/x/sys/unix/syscall_bsd.go | 0 .../golang.org/x/sys/unix/syscall_darwin.go | 0 .../x/sys/unix/syscall_darwin_386.go | 0 .../x/sys/unix/syscall_darwin_amd64.go | 0 .../x/sys/unix/syscall_darwin_arm.go | 0 .../x/sys/unix/syscall_darwin_arm64.go | 0 .../x/sys/unix/syscall_dragonfly.go | 0 .../x/sys/unix/syscall_dragonfly_amd64.go | 0 .../golang.org/x/sys/unix/syscall_freebsd.go | 0 .../x/sys/unix/syscall_freebsd_386.go | 0 .../x/sys/unix/syscall_freebsd_amd64.go | 0 .../x/sys/unix/syscall_freebsd_arm.go | 0 .../golang.org/x/sys/unix/syscall_linux.go | 0 .../x/sys/unix/syscall_linux_386.go | 0 .../x/sys/unix/syscall_linux_amd64.go | 0 .../x/sys/unix/syscall_linux_arm.go | 0 .../x/sys/unix/syscall_linux_arm64.go | 0 .../x/sys/unix/syscall_linux_mips64x.go | 0 .../x/sys/unix/syscall_linux_ppc64x.go | 0 .../x/sys/unix/syscall_linux_s390x.go | 0 .../golang.org/x/sys/unix/syscall_netbsd.go | 0 .../x/sys/unix/syscall_netbsd_386.go | 0 .../x/sys/unix/syscall_netbsd_amd64.go | 0 .../x/sys/unix/syscall_netbsd_arm.go | 0 .../golang.org/x/sys/unix/syscall_no_getwd.go | 0 .../golang.org/x/sys/unix/syscall_openbsd.go | 0 .../x/sys/unix/syscall_openbsd_386.go | 0 .../x/sys/unix/syscall_openbsd_amd64.go | 0 .../golang.org/x/sys/unix/syscall_solaris.go | 0 .../x/sys/unix/syscall_solaris_amd64.go | 0 .../golang.org/x/sys/unix/syscall_unix.go | 0 .../golang.org/x/sys/unix/types_darwin.go | 0 .../golang.org/x/sys/unix/types_dragonfly.go | 0 .../golang.org/x/sys/unix/types_freebsd.go | 0 .../golang.org/x/sys/unix/types_linux.go | 0 .../golang.org/x/sys/unix/types_netbsd.go | 0 .../golang.org/x/sys/unix/types_openbsd.go | 0 .../golang.org/x/sys/unix/types_solaris.go | 0 .../x/sys/unix/zerrors_darwin_386.go | 0 .../x/sys/unix/zerrors_darwin_amd64.go | 0 .../x/sys/unix/zerrors_darwin_arm.go | 0 .../x/sys/unix/zerrors_darwin_arm64.go | 0 .../x/sys/unix/zerrors_dragonfly_amd64.go | 0 .../x/sys/unix/zerrors_freebsd_386.go | 0 .../x/sys/unix/zerrors_freebsd_amd64.go | 0 .../x/sys/unix/zerrors_freebsd_arm.go | 0 .../x/sys/unix/zerrors_linux_386.go | 0 .../x/sys/unix/zerrors_linux_amd64.go | 0 .../x/sys/unix/zerrors_linux_arm.go | 0 .../x/sys/unix/zerrors_linux_arm64.go | 0 .../x/sys/unix/zerrors_linux_mips64.go | 0 .../x/sys/unix/zerrors_linux_mips64le.go | 0 .../x/sys/unix/zerrors_linux_ppc64.go | 0 .../x/sys/unix/zerrors_linux_ppc64le.go | 0 .../x/sys/unix/zerrors_linux_s390x.go | 0 .../x/sys/unix/zerrors_netbsd_386.go | 0 .../x/sys/unix/zerrors_netbsd_amd64.go | 0 .../x/sys/unix/zerrors_netbsd_arm.go | 0 .../x/sys/unix/zerrors_openbsd_386.go | 0 .../x/sys/unix/zerrors_openbsd_amd64.go | 0 .../x/sys/unix/zerrors_solaris_amd64.go | 0 .../x/sys/unix/zsyscall_darwin_386.go | 0 .../x/sys/unix/zsyscall_darwin_amd64.go | 0 .../x/sys/unix/zsyscall_darwin_arm.go | 0 .../x/sys/unix/zsyscall_darwin_arm64.go | 0 .../x/sys/unix/zsyscall_dragonfly_amd64.go | 0 .../x/sys/unix/zsyscall_freebsd_386.go | 0 .../x/sys/unix/zsyscall_freebsd_amd64.go | 0 .../x/sys/unix/zsyscall_freebsd_arm.go | 0 .../x/sys/unix/zsyscall_linux_386.go | 0 .../x/sys/unix/zsyscall_linux_amd64.go | 0 .../x/sys/unix/zsyscall_linux_arm.go | 0 .../x/sys/unix/zsyscall_linux_arm64.go | 0 .../x/sys/unix/zsyscall_linux_mips64.go | 0 .../x/sys/unix/zsyscall_linux_mips64le.go | 0 .../x/sys/unix/zsyscall_linux_ppc64.go | 0 .../x/sys/unix/zsyscall_linux_ppc64le.go | 0 .../x/sys/unix/zsyscall_linux_s390x.go | 0 .../x/sys/unix/zsyscall_netbsd_386.go | 0 .../x/sys/unix/zsyscall_netbsd_amd64.go | 0 .../x/sys/unix/zsyscall_netbsd_arm.go | 0 .../x/sys/unix/zsyscall_openbsd_386.go | 0 .../x/sys/unix/zsyscall_openbsd_amd64.go | 0 .../x/sys/unix/zsyscall_solaris_amd64.go | 0 .../golang.org/x/sys/unix/zsysctl_openbsd.go | 0 .../x/sys/unix/zsysnum_darwin_386.go | 0 .../x/sys/unix/zsysnum_darwin_amd64.go | 0 .../x/sys/unix/zsysnum_darwin_arm.go | 0 .../x/sys/unix/zsysnum_darwin_arm64.go | 0 .../x/sys/unix/zsysnum_dragonfly_amd64.go | 0 .../x/sys/unix/zsysnum_freebsd_386.go | 0 .../x/sys/unix/zsysnum_freebsd_amd64.go | 0 .../x/sys/unix/zsysnum_freebsd_arm.go | 0 .../x/sys/unix/zsysnum_linux_386.go | 0 .../x/sys/unix/zsysnum_linux_amd64.go | 0 .../x/sys/unix/zsysnum_linux_arm.go | 0 .../x/sys/unix/zsysnum_linux_arm64.go | 0 .../x/sys/unix/zsysnum_linux_mips64.go | 0 .../x/sys/unix/zsysnum_linux_mips64le.go | 0 .../x/sys/unix/zsysnum_linux_ppc64.go | 0 .../x/sys/unix/zsysnum_linux_ppc64le.go | 0 .../x/sys/unix/zsysnum_linux_s390x.go | 0 .../x/sys/unix/zsysnum_netbsd_386.go | 0 .../x/sys/unix/zsysnum_netbsd_amd64.go | 0 .../x/sys/unix/zsysnum_netbsd_arm.go | 0 .../x/sys/unix/zsysnum_openbsd_386.go | 0 .../x/sys/unix/zsysnum_openbsd_amd64.go | 0 .../x/sys/unix/zsysnum_solaris_amd64.go | 0 .../x/sys/unix/ztypes_darwin_386.go | 0 .../x/sys/unix/ztypes_darwin_amd64.go | 0 .../x/sys/unix/ztypes_darwin_arm.go | 0 .../x/sys/unix/ztypes_darwin_arm64.go | 0 .../x/sys/unix/ztypes_dragonfly_amd64.go | 0 .../x/sys/unix/ztypes_freebsd_386.go | 0 .../x/sys/unix/ztypes_freebsd_amd64.go | 0 .../x/sys/unix/ztypes_freebsd_arm.go | 0 .../golang.org/x/sys/unix/ztypes_linux_386.go | 0 .../x/sys/unix/ztypes_linux_amd64.go | 0 .../golang.org/x/sys/unix/ztypes_linux_arm.go | 0 .../x/sys/unix/ztypes_linux_arm64.go | 0 .../x/sys/unix/ztypes_linux_mips64.go | 0 .../x/sys/unix/ztypes_linux_mips64le.go | 0 .../x/sys/unix/ztypes_linux_ppc64.go | 0 .../x/sys/unix/ztypes_linux_ppc64le.go | 0 .../x/sys/unix/ztypes_linux_s390x.go | 0 .../x/sys/unix/ztypes_netbsd_386.go | 0 .../x/sys/unix/ztypes_netbsd_amd64.go | 0 .../x/sys/unix/ztypes_netbsd_arm.go | 0 .../x/sys/unix/ztypes_openbsd_386.go | 0 .../x/sys/unix/ztypes_openbsd_amd64.go | 0 .../x/sys/unix/ztypes_solaris_amd64.go | 0 .../src => vendor}/golang.org/x/text/LICENSE | 0 .../src => vendor}/golang.org/x/text/PATENTS | 0 vendor/golang.org/x/text/encoding/BUILD.bazel | 11 +++++ .../x/text/encoding/charmap/BUILD.bazel | 16 ++++++ .../x/text/encoding/charmap/charmap.go | 0 .../x/text/encoding/charmap/maketables.go | 0 .../x/text/encoding/charmap/tables.go | 0 .../golang.org/x/text/encoding/encoding.go | 0 .../x/text/encoding/internal/BUILD.bazel | 12 +++++ .../encoding/internal/identifier/BUILD.bazel | 10 ++++ .../text/encoding/internal/identifier/gen.go | 0 .../internal/identifier/identifier.go | 0 .../text/encoding/internal/identifier/mib.go | 0 .../x/text/encoding/internal/internal.go | 0 .../x/text/encoding/japanese/BUILD.bazel | 19 +++++++ .../x/text/encoding/japanese/all.go | 0 .../x/text/encoding/japanese/eucjp.go | 0 .../x/text/encoding/japanese/iso2022jp.go | 0 .../x/text/encoding/japanese/maketables.go | 0 .../x/text/encoding/japanese/shiftjis.go | 0 .../x/text/encoding/japanese/tables.go | 0 .../x/text/encoding/korean/BUILD.bazel | 16 ++++++ .../x/text/encoding/korean/euckr.go | 0 .../x/text/encoding/korean/maketables.go | 0 .../x/text/encoding/korean/tables.go | 0 .../encoding/simplifiedchinese/BUILD.bazel | 18 +++++++ .../x/text/encoding/simplifiedchinese/all.go | 0 .../x/text/encoding/simplifiedchinese/gbk.go | 0 .../encoding/simplifiedchinese/hzgb2312.go | 0 .../encoding/simplifiedchinese/maketables.go | 0 .../text/encoding/simplifiedchinese/tables.go | 0 .../encoding/traditionalchinese/BUILD.bazel | 16 ++++++ .../text/encoding/traditionalchinese/big5.go | 0 .../encoding/traditionalchinese/maketables.go | 0 .../encoding/traditionalchinese/tables.go | 0 .../x/text/encoding/unicode/BUILD.bazel | 18 +++++++ .../x/text/encoding/unicode/override.go | 0 .../x/text/encoding/unicode/unicode.go | 0 .../x/text/internal/utf8internal/BUILD.bazel | 7 +++ .../internal/utf8internal/utf8internal.go | 0 vendor/golang.org/x/text/runes/BUILD.bazel | 11 +++++ .../golang.org/x/text/runes/cond.go | 0 .../golang.org/x/text/runes/runes.go | 0 .../x/text/secure/bidirule/BUILD.bazel | 11 +++++ .../x/text/secure/bidirule/bidirule.go | 0 .../golang.org/x/text/transform/BUILD.bazel | 7 +++ .../golang.org/x/text/transform/transform.go | 0 .../x/text/unicode/bidi/BUILD.bazel | 14 ++++++ .../golang.org/x/text/unicode/bidi/bidi.go | 0 .../golang.org/x/text/unicode/bidi/bracket.go | 0 .../golang.org/x/text/unicode/bidi/core.go | 0 .../golang.org/x/text/unicode/bidi/gen.go | 0 .../x/text/unicode/bidi/gen_ranges.go | 0 .../x/text/unicode/bidi/gen_trieval.go | 0 .../golang.org/x/text/unicode/bidi/prop.go | 0 .../golang.org/x/text/unicode/bidi/tables.go | 0 .../golang.org/x/text/unicode/bidi/trieval.go | 0 .../x/text/unicode/norm/BUILD.bazel | 18 +++++++ .../x/text/unicode/norm/composition.go | 0 .../x/text/unicode/norm/forminfo.go | 0 .../golang.org/x/text/unicode/norm/input.go | 0 .../golang.org/x/text/unicode/norm/iter.go | 0 .../x/text/unicode/norm/maketables.go | 0 .../x/text/unicode/norm/normalize.go | 0 .../x/text/unicode/norm/readwriter.go | 0 .../golang.org/x/text/unicode/norm/tables.go | 0 .../x/text/unicode/norm/transform.go | 0 .../golang.org/x/text/unicode/norm/trie.go | 0 .../golang.org/x/text/unicode/norm/triegen.go | 0 .../google.golang.org/genproto/LICENSE | 0 .../googleapis/rpc/status/BUILD.bazel | 11 +++++ .../googleapis/rpc/status/status.pb.go | 0 vendor/google.golang.org/grpc/BUILD.bazel | 41 ++++++++++++++++ .../google.golang.org/grpc/LICENSE | 0 .../google.golang.org/grpc/PATENTS | 0 .../google.golang.org/grpc/backoff.go | 0 .../google.golang.org/grpc/balancer.go | 0 .../google.golang.org/grpc/call.go | 0 .../google.golang.org/grpc/clientconn.go | 0 .../google.golang.org/grpc/codec.go | 0 .../google.golang.org/grpc/codes/BUILD.bazel | 10 ++++ .../grpc/codes/code_string.go | 0 .../google.golang.org/grpc/codes/codes.go | 0 .../grpc/credentials/BUILD.bazel | 11 +++++ .../grpc/credentials/credentials.go | 0 .../grpc/credentials/credentials_util_go17.go | 0 .../grpc/credentials/credentials_util_go18.go | 0 .../credentials/credentials_util_pre_go17.go | 0 .../google.golang.org/grpc/doc.go | 0 .../google.golang.org/grpc/go16.go | 0 .../google.golang.org/grpc/go17.go | 0 .../google.golang.org/grpc/grpclb.go | 0 .../grpc/grpclb/grpc_lb_v1/BUILD.bazel | 8 +++ .../grpc/grpclb/grpc_lb_v1/grpclb.pb.go | 0 .../grpc/grpclog/BUILD.bazel | 7 +++ .../google.golang.org/grpc/grpclog/logger.go | 0 .../google.golang.org/grpc/interceptor.go | 0 .../grpc/internal/BUILD.bazel | 7 +++ .../grpc/internal/internal.go | 0 .../grpc/keepalive/BUILD.bazel | 7 +++ .../grpc/keepalive/keepalive.go | 0 .../grpc/metadata/BUILD.bazel | 8 +++ .../grpc/metadata/metadata.go | 0 .../google.golang.org/grpc/naming/BUILD.bazel | 7 +++ .../google.golang.org/grpc/naming/naming.go | 0 .../google.golang.org/grpc/peer/BUILD.bazel | 11 +++++ .../google.golang.org/grpc/peer/peer.go | 0 .../google.golang.org/grpc/proxy.go | 0 .../google.golang.org/grpc/rpc_util.go | 0 .../google.golang.org/grpc/server.go | 0 .../google.golang.org/grpc/stats/BUILD.bazel | 11 +++++ .../google.golang.org/grpc/stats/handlers.go | 0 .../google.golang.org/grpc/stats/stats.go | 0 .../google.golang.org/grpc/status/BUILD.bazel | 12 +++++ .../google.golang.org/grpc/status/status.go | 0 .../google.golang.org/grpc/stream.go | 0 vendor/google.golang.org/grpc/tap/BUILD.bazel | 8 +++ .../google.golang.org/grpc/tap/tap.go | 0 .../google.golang.org/grpc/trace.go | 0 .../grpc/transport/BUILD.bazel | 31 ++++++++++++ .../grpc/transport/control.go | 0 .../google.golang.org/grpc/transport/go16.go | 0 .../google.golang.org/grpc/transport/go17.go | 0 .../grpc/transport/handler_server.go | 0 .../grpc/transport/http2_client.go | 0 .../grpc/transport/http2_server.go | 0 .../grpc/transport/http_util.go | 0 .../grpc/transport/transport.go | 0 768 files changed, 1558 insertions(+) create mode 100644 vendor/github.com/Sirupsen/logrus/BUILD.bazel rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/LICENSE (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/alt_exit.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/doc.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/entry.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/exported.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/formatter.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/hooks.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/json_formatter.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/logger.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/logrus.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/terminal_appengine.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/terminal_bsd.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/terminal_linux.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/terminal_notwindows.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/terminal_solaris.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/terminal_windows.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/text_formatter.go (100%) rename {_vendor/src => vendor}/github.com/Sirupsen/logrus/writer.go (100%) rename {_vendor/src => vendor}/github.com/beorn7/perks/LICENSE (100%) create mode 100644 vendor/github.com/beorn7/perks/quantile/BUILD.bazel rename {_vendor/src => vendor}/github.com/beorn7/perks/quantile/stream.go (100%) create mode 100644 vendor/github.com/boltdb/bolt/BUILD.bazel rename {_vendor/src => vendor}/github.com/boltdb/bolt/LICENSE (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_386.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_amd64.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_arm.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_arm64.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_linux.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_openbsd.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_ppc.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_ppc64.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_ppc64le.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_s390x.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_unix.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_unix_solaris.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bolt_windows.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/boltsync_unix.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/bucket.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/cursor.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/db.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/doc.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/errors.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/freelist.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/node.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/page.go (100%) rename {_vendor/src => vendor}/github.com/boltdb/bolt/tx.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/LICENSE (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/NOTICE (100%) create mode 100644 vendor/github.com/coreos/etcd/auth/authpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/coreos/etcd/auth/authpb/auth.pb.go (100%) create mode 100644 vendor/github.com/coreos/etcd/clientv3/BUILD.bazel rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/auth.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/balancer.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/client.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/cluster.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/compact_op.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/compare.go (100%) create mode 100644 vendor/github.com/coreos/etcd/clientv3/concurrency/BUILD.bazel rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/concurrency/doc.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/concurrency/election.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/concurrency/key.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/concurrency/mutex.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/concurrency/session.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/concurrency/stm.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/config.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/doc.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/kv.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/lease.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/logger.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/maintenance.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/op.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/retry.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/sort.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/txn.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/clientv3/watch.go (100%) create mode 100644 vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/BUILD.bazel rename {_vendor/src => vendor}/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/doc.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/md.go (100%) create mode 100644 vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.gw.go (100%) create mode 100644 vendor/github.com/coreos/etcd/mvcc/mvccpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go (100%) create mode 100644 vendor/github.com/coreos/etcd/pkg/monotime/BUILD.bazel rename {_vendor/src => vendor}/github.com/coreos/etcd/pkg/monotime/issue15006.s (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/pkg/monotime/monotime.go (100%) rename {_vendor/src => vendor}/github.com/coreos/etcd/pkg/monotime/nanotime.go (100%) rename {_vendor/src => vendor}/github.com/cznic/golex/LICENSE (100%) create mode 100644 vendor/github.com/cznic/golex/lex/BUILD.bazel rename {_vendor/src => vendor}/github.com/cznic/golex/lex/api.go (100%) rename {_vendor/src => vendor}/github.com/cznic/golex/lex/doc.go (100%) create mode 100644 vendor/github.com/cznic/mathutil/BUILD.bazel rename {_vendor/src => vendor}/github.com/cznic/mathutil/LICENSE (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/bits.go (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/envelope.go (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/mathutil.go (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/permute.go (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/primes.go (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/rat.go (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/rnd.go (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/tables.go (100%) rename {_vendor/src => vendor}/github.com/cznic/mathutil/test_deps.go (100%) create mode 100644 vendor/github.com/cznic/parser/yacc/BUILD.bazel rename {_vendor/src => vendor}/github.com/cznic/parser/yacc/LICENSE (100%) rename {_vendor/src => vendor}/github.com/cznic/parser/yacc/api.go (100%) rename {_vendor/src => vendor}/github.com/cznic/parser/yacc/ast.go (100%) rename {_vendor/src => vendor}/github.com/cznic/parser/yacc/generate.go (100%) rename {_vendor/src => vendor}/github.com/cznic/parser/yacc/goscanner.go (100%) rename {_vendor/src => vendor}/github.com/cznic/parser/yacc/lexer.go (100%) rename {_vendor/src => vendor}/github.com/cznic/parser/yacc/parser.go (100%) rename {_vendor/src => vendor}/github.com/cznic/parser/yacc/scanner.go (100%) create mode 100644 vendor/github.com/cznic/sortutil/BUILD.bazel rename {_vendor/src => vendor}/github.com/cznic/sortutil/LICENSE (100%) rename {_vendor/src => vendor}/github.com/cznic/sortutil/sortutil.go (100%) create mode 100644 vendor/github.com/cznic/strutil/BUILD.bazel rename {_vendor/src => vendor}/github.com/cznic/strutil/LICENSE (100%) rename {_vendor/src => vendor}/github.com/cznic/strutil/strutil.go (100%) create mode 100644 vendor/github.com/cznic/y/BUILD.bazel rename {_vendor/src => vendor}/github.com/cznic/y/LICENSE (100%) rename {_vendor/src => vendor}/github.com/cznic/y/api.go (100%) rename {_vendor/src => vendor}/github.com/cznic/y/y.go (100%) create mode 100644 vendor/github.com/go-sql-driver/mysql/BUILD.bazel rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/LICENSE (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/appengine.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/buffer.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/collations.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/connection.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/const.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/driver.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/errors.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/infile.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/packets.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/result.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/rows.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/statement.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/transaction.go (100%) rename {_vendor/src => vendor}/github.com/go-sql-driver/mysql/utils.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/LICENSE (100%) create mode 100644 vendor/github.com/golang/protobuf/jsonpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/golang/protobuf/jsonpb/jsonpb.go (100%) create mode 100644 vendor/github.com/golang/protobuf/proto/BUILD.bazel rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/clone.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/decode.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/encode.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/equal.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/extensions.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/lib.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/message_set.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/pointer_reflect.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/pointer_unsafe.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/properties.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/text.go (100%) rename {_vendor/src => vendor}/github.com/golang/protobuf/proto/text_parser.go (100%) create mode 100644 vendor/github.com/golang/protobuf/ptypes/any/BUILD.bazel rename {_vendor/src => vendor}/github.com/golang/protobuf/ptypes/any/any.pb.go (100%) create mode 100644 vendor/github.com/golang/snappy/BUILD.bazel rename {_vendor/src => vendor}/github.com/golang/snappy/LICENSE (100%) rename {_vendor/src => vendor}/github.com/golang/snappy/decode.go (100%) rename {_vendor/src => vendor}/github.com/golang/snappy/encode.go (100%) rename {_vendor/src => vendor}/github.com/golang/snappy/snappy.go (100%) create mode 100644 vendor/github.com/gorilla/context/BUILD.bazel rename {_vendor/src => vendor}/github.com/gorilla/context/LICENSE (100%) rename {_vendor/src => vendor}/github.com/gorilla/context/context.go (100%) rename {_vendor/src => vendor}/github.com/gorilla/context/doc.go (100%) create mode 100644 vendor/github.com/gorilla/mux/BUILD.bazel rename {_vendor/src => vendor}/github.com/gorilla/mux/LICENSE (100%) rename {_vendor/src => vendor}/github.com/gorilla/mux/context_gorilla.go (100%) rename {_vendor/src => vendor}/github.com/gorilla/mux/context_native.go (100%) rename {_vendor/src => vendor}/github.com/gorilla/mux/doc.go (100%) rename {_vendor/src => vendor}/github.com/gorilla/mux/mux.go (100%) rename {_vendor/src => vendor}/github.com/gorilla/mux/regexp.go (100%) rename {_vendor/src => vendor}/github.com/gorilla/mux/route.go (100%) create mode 100644 vendor/github.com/grpc-ecosystem/go-grpc-prometheus/BUILD.bazel rename {_vendor/src => vendor}/github.com/grpc-ecosystem/go-grpc-prometheus/LICENSE (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/go-grpc-prometheus/client.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/go-grpc-prometheus/client_reporter.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/go-grpc-prometheus/server.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/go-grpc-prometheus/server_reporter.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/go-grpc-prometheus/util.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt (100%) create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/BUILD.bazel rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/convert.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/handler.go (100%) create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/BUILD.bazel rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.pb.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_json.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_jsonpb.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler_registry.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/mux.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/pattern.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/proto2_convert.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/runtime/query.go (100%) create mode 100644 vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/BUILD.bazel rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go (100%) rename {_vendor/src => vendor}/github.com/grpc-ecosystem/grpc-gateway/utilities/trie.go (100%) create mode 100644 vendor/github.com/juju/errors/BUILD.bazel rename {_vendor/src => vendor}/github.com/juju/errors/LICENSE (100%) rename {_vendor/src => vendor}/github.com/juju/errors/doc.go (100%) rename {_vendor/src => vendor}/github.com/juju/errors/error.go (100%) rename {_vendor/src => vendor}/github.com/juju/errors/errortypes.go (100%) rename {_vendor/src => vendor}/github.com/juju/errors/functions.go (100%) rename {_vendor/src => vendor}/github.com/juju/errors/path.go (100%) rename {_vendor/src => vendor}/github.com/matttproud/golang_protobuf_extensions/LICENSE (100%) rename {_vendor/src => vendor}/github.com/matttproud/golang_protobuf_extensions/NOTICE (100%) create mode 100644 vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/BUILD.bazel rename {_vendor/src => vendor}/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go (100%) rename {_vendor/src => vendor}/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go (100%) rename {_vendor/src => vendor}/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go (100%) create mode 100644 vendor/github.com/ngaut/log/BUILD.bazel rename {_vendor/src => vendor}/github.com/ngaut/log/LICENSE (100%) rename {_vendor/src => vendor}/github.com/ngaut/log/crash_unix.go (100%) rename {_vendor/src => vendor}/github.com/ngaut/log/crash_win.go (100%) rename {_vendor/src => vendor}/github.com/ngaut/log/log.go (100%) create mode 100644 vendor/github.com/ngaut/pools/BUILD.bazel rename {_vendor/src => vendor}/github.com/ngaut/pools/id_pool.go (100%) rename {_vendor/src => vendor}/github.com/ngaut/pools/numbered.go (100%) rename {_vendor/src => vendor}/github.com/ngaut/pools/resource_pool.go (100%) rename {_vendor/src => vendor}/github.com/ngaut/pools/roundrobin.go (100%) create mode 100644 vendor/github.com/ngaut/sync2/BUILD.bazel rename {_vendor/src => vendor}/github.com/ngaut/sync2/atomic.go (100%) rename {_vendor/src => vendor}/github.com/ngaut/sync2/cond.go (100%) rename {_vendor/src => vendor}/github.com/ngaut/sync2/semaphore.go (100%) rename {_vendor/src => vendor}/github.com/ngaut/sync2/service_manager.go (100%) create mode 100644 vendor/github.com/ngaut/systimemon/BUILD.bazel rename {_vendor/src => vendor}/github.com/ngaut/systimemon/LICENSE (100%) rename {_vendor/src => vendor}/github.com/ngaut/systimemon/systime_mon.go (100%) rename {_vendor/src => vendor}/github.com/petar/GoLLRB/LICENSE (100%) create mode 100644 vendor/github.com/petar/GoLLRB/llrb/BUILD.bazel rename {_vendor/src => vendor}/github.com/petar/GoLLRB/llrb/avgvar.go (100%) rename {_vendor/src => vendor}/github.com/petar/GoLLRB/llrb/iterator.go (100%) rename {_vendor/src => vendor}/github.com/petar/GoLLRB/llrb/llrb-stats.go (100%) rename {_vendor/src => vendor}/github.com/petar/GoLLRB/llrb/llrb.go (100%) rename {_vendor/src => vendor}/github.com/petar/GoLLRB/llrb/util.go (100%) create mode 100644 vendor/github.com/pingcap/check/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/check/benchmark.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/check/check.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/check/checkers.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/check/checkers2.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/check/compare.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/check/helpers.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/check/printer.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/check/run.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/LICENSE (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/batch.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/cache/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/cache/cache.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/cache/lru.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/comparer.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/comparer/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/comparer/bytes_comparer.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/comparer/comparer.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/db.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/db_compaction.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/db_iter.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/db_snapshot.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/db_state.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/db_transaction.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/db_util.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/db_write.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/doc.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/errors.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/errors/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/errors/errors.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/filter.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/filter/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/filter/bloom.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/filter/filter.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/iterator/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/iterator/array_iter.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/iterator/indexed_iter.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/iterator/iter.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/iterator/merged_iter.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/journal/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/journal/journal.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/key.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/memdb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/memdb/memdb.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/opt/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/opt/options.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/options.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/session.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/session_compaction.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/session_record.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/session_util.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/storage/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/storage/file_storage.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/storage/file_storage_nacl.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/storage/file_storage_plan9.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/storage/file_storage_solaris.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/storage/file_storage_unix.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/storage/file_storage_windows.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/storage/mem_storage.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/storage/storage.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/table.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/table/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/table/reader.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/table/table.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/table/writer.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/util.go (100%) create mode 100644 vendor/github.com/pingcap/goleveldb/leveldb/util/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/util/buffer.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/util/buffer_pool.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/util/crc32.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/util/hash.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/util/range.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/util/util.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/goleveldb/leveldb/version.go (100%) create mode 100644 vendor/github.com/pingcap/kvproto/pkg/coprocessor/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/kvproto/pkg/coprocessor/coprocessor.pb.go (100%) create mode 100644 vendor/github.com/pingcap/kvproto/pkg/eraftpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/kvproto/pkg/eraftpb/eraftpb.pb.go (100%) create mode 100644 vendor/github.com/pingcap/kvproto/pkg/errorpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/kvproto/pkg/errorpb/errorpb.pb.go (100%) create mode 100644 vendor/github.com/pingcap/kvproto/pkg/kvrpcpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/kvproto/pkg/kvrpcpb/kvrpcpb.pb.go (100%) create mode 100644 vendor/github.com/pingcap/kvproto/pkg/metapb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/kvproto/pkg/metapb/metapb.pb.go (100%) create mode 100644 vendor/github.com/pingcap/kvproto/pkg/pdpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/kvproto/pkg/pdpb/pdpb.pb.go (100%) create mode 100644 vendor/github.com/pingcap/kvproto/pkg/raft_serverpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/kvproto/pkg/raft_serverpb/raft_serverpb.pb.go (100%) create mode 100644 vendor/github.com/pingcap/kvproto/pkg/tikvpb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/kvproto/pkg/tikvpb/tikvpb.pb.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/pd/LICENSE (100%) create mode 100644 vendor/github.com/pingcap/pd/pd-client/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/pd/pd-client/client.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/pd/pd-client/metrics.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/tipb/LICENSE (100%) create mode 100644 vendor/github.com/pingcap/tipb/go-binlog/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/tipb/go-binlog/binlog.pb.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/tipb/go-binlog/cistern.pb.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/tipb/go-binlog/pump.pb.go (100%) create mode 100644 vendor/github.com/pingcap/tipb/go-tipb/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/tipb/go-tipb/executor.pb.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/tipb/go-tipb/expression.pb.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/tipb/go-tipb/schema.pb.go (100%) rename {_vendor/src => vendor}/github.com/pingcap/tipb/go-tipb/select.pb.go (100%) create mode 100644 vendor/github.com/pingcap/tipb/sharedbytes/BUILD.bazel rename {_vendor/src => vendor}/github.com/pingcap/tipb/sharedbytes/sharedbytes.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/LICENSE (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/NOTICE (100%) create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/BUILD.bazel rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/collector.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/counter.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/desc.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/doc.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/expvar_collector.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/fnv.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/gauge.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/go_collector.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/histogram.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/http.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/metric.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/process_collector.go (100%) create mode 100644 vendor/github.com/prometheus/client_golang/prometheus/push/BUILD.bazel rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/push/push.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/registry.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/summary.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/untyped.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/value.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_golang/prometheus/vec.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_model/LICENSE (100%) rename {_vendor/src => vendor}/github.com/prometheus/client_model/NOTICE (100%) create mode 100644 vendor/github.com/prometheus/client_model/go/BUILD.bazel rename {_vendor/src => vendor}/github.com/prometheus/client_model/go/metrics.pb.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/LICENSE (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/NOTICE (100%) create mode 100644 vendor/github.com/prometheus/common/expfmt/BUILD.bazel rename {_vendor/src => vendor}/github.com/prometheus/common/expfmt/decode.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/expfmt/encode.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/expfmt/expfmt.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/expfmt/fuzz.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/expfmt/text_create.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/expfmt/text_parse.go (100%) create mode 100644 vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD.bazel rename {_vendor/src => vendor}/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go (100%) create mode 100644 vendor/github.com/prometheus/common/model/BUILD.bazel rename {_vendor/src => vendor}/github.com/prometheus/common/model/alert.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/fingerprinting.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/fnv.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/labels.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/labelset.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/metric.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/model.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/signature.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/silence.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/time.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/common/model/value.go (100%) create mode 100644 vendor/github.com/prometheus/procfs/BUILD.bazel rename {_vendor/src => vendor}/github.com/prometheus/procfs/LICENSE (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/NOTICE (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/doc.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/fs.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/ipvs.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/mdstat.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/proc.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/proc_io.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/proc_limits.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/proc_stat.go (100%) rename {_vendor/src => vendor}/github.com/prometheus/procfs/stat.go (100%) create mode 100644 vendor/github.com/twinj/uuid/BUILD.bazel rename {_vendor/src => vendor}/github.com/twinj/uuid/LICENSE (100%) rename {_vendor/src => vendor}/github.com/twinj/uuid/array.go (100%) rename {_vendor/src => vendor}/github.com/twinj/uuid/rfc4122.go (100%) rename {_vendor/src => vendor}/github.com/twinj/uuid/saver.go (100%) rename {_vendor/src => vendor}/github.com/twinj/uuid/state.go (100%) rename {_vendor/src => vendor}/github.com/twinj/uuid/struct.go (100%) rename {_vendor/src => vendor}/github.com/twinj/uuid/timestamp.go (100%) rename {_vendor/src => vendor}/github.com/twinj/uuid/uuids.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/LICENSE (100%) rename {_vendor/src => vendor}/golang.org/x/net/PATENTS (100%) create mode 100644 vendor/golang.org/x/net/context/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/net/context/context.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/context/go17.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/context/pre_go17.go (100%) create mode 100644 vendor/golang.org/x/net/http2/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/net/http2/client_conn_pool.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/configure_transport.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/databuffer.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/errors.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/flow.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/frame.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/go16.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/go17.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/go17_not18.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/go18.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/gotrack.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/headermap.go (100%) create mode 100644 vendor/golang.org/x/net/http2/hpack/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/net/http2/hpack/encode.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/hpack/hpack.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/hpack/huffman.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/hpack/tables.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/http2.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/not_go16.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/not_go17.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/not_go18.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/pipe.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/server.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/transport.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/write.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/writesched.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/writesched_priority.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/http2/writesched_random.go (100%) create mode 100644 vendor/golang.org/x/net/idna/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/net/idna/idna.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/idna/punycode.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/idna/tables.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/idna/trie.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/idna/trieval.go (100%) create mode 100644 vendor/golang.org/x/net/internal/timeseries/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/net/internal/timeseries/timeseries.go (100%) create mode 100644 vendor/golang.org/x/net/lex/httplex/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/net/lex/httplex/httplex.go (100%) create mode 100644 vendor/golang.org/x/net/trace/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/net/trace/events.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/trace/histogram.go (100%) rename {_vendor/src => vendor}/golang.org/x/net/trace/trace.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/LICENSE (100%) rename {_vendor/src => vendor}/golang.org/x/sys/PATENTS (100%) create mode 100644 vendor/golang.org/x/sys/unix/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_darwin_386.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_darwin_amd64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_darwin_arm.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_darwin_arm64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_dragonfly_amd64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_freebsd_386.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_freebsd_amd64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_freebsd_arm.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_linux_386.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_linux_amd64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_linux_arm.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_linux_arm64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_linux_mips64x.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_linux_ppc64x.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_linux_s390x.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_netbsd_386.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_netbsd_amd64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_netbsd_arm.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_openbsd_386.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_openbsd_amd64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/asm_solaris_amd64.s (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/bluetooth_linux.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/constants.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/env_unix.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/env_unset.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/flock.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/flock_linux_32bit.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/gccgo.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/gccgo_c.c (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/gccgo_linux_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/mkpost.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/race.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/race0.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/sockcmsg_linux.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/sockcmsg_unix.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/str.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_bsd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_darwin.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_darwin_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_darwin_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_darwin_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_darwin_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_dragonfly.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_dragonfly_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_freebsd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_freebsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_freebsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_freebsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_linux.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_linux_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_linux_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_linux_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_linux_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_linux_mips64x.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_linux_ppc64x.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_linux_s390x.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_netbsd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_netbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_netbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_netbsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_no_getwd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_openbsd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_openbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_openbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_solaris.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_solaris_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/syscall_unix.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/types_darwin.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/types_dragonfly.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/types_freebsd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/types_linux.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/types_netbsd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/types_openbsd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/types_solaris.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_darwin_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_darwin_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_darwin_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_darwin_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_freebsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_freebsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_freebsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_mips64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_mips64le.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_ppc64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_ppc64le.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_linux_s390x.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_netbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_netbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_netbsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_openbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_openbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zerrors_solaris_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_darwin_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_darwin_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_darwin_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_darwin_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_freebsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_freebsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_mips64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_mips64le.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_ppc64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_linux_s390x.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_netbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_netbsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_openbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsyscall_solaris_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysctl_openbsd.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_darwin_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_darwin_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_darwin_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_darwin_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_freebsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_freebsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_mips64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_mips64le.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_ppc64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_linux_s390x.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_netbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_netbsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_openbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/zsysnum_solaris_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_darwin_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_darwin_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_darwin_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_darwin_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_freebsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_freebsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_freebsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_arm64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_mips64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_mips64le.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_ppc64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_ppc64le.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_linux_s390x.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_netbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_netbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_netbsd_arm.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_openbsd_386.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_openbsd_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/sys/unix/ztypes_solaris_amd64.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/LICENSE (100%) rename {_vendor/src => vendor}/golang.org/x/text/PATENTS (100%) create mode 100644 vendor/golang.org/x/text/encoding/BUILD.bazel create mode 100644 vendor/golang.org/x/text/encoding/charmap/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/encoding/charmap/charmap.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/charmap/maketables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/charmap/tables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/encoding.go (100%) create mode 100644 vendor/golang.org/x/text/encoding/internal/BUILD.bazel create mode 100644 vendor/golang.org/x/text/encoding/internal/identifier/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/encoding/internal/identifier/gen.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/internal/identifier/identifier.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/internal/identifier/mib.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/internal/internal.go (100%) create mode 100644 vendor/golang.org/x/text/encoding/japanese/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/encoding/japanese/all.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/japanese/eucjp.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/japanese/iso2022jp.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/japanese/maketables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/japanese/shiftjis.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/japanese/tables.go (100%) create mode 100644 vendor/golang.org/x/text/encoding/korean/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/encoding/korean/euckr.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/korean/maketables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/korean/tables.go (100%) create mode 100644 vendor/golang.org/x/text/encoding/simplifiedchinese/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/encoding/simplifiedchinese/all.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/simplifiedchinese/gbk.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/simplifiedchinese/hzgb2312.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/simplifiedchinese/maketables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/simplifiedchinese/tables.go (100%) create mode 100644 vendor/golang.org/x/text/encoding/traditionalchinese/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/encoding/traditionalchinese/big5.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/traditionalchinese/maketables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/traditionalchinese/tables.go (100%) create mode 100644 vendor/golang.org/x/text/encoding/unicode/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/encoding/unicode/override.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/encoding/unicode/unicode.go (100%) create mode 100644 vendor/golang.org/x/text/internal/utf8internal/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/internal/utf8internal/utf8internal.go (100%) create mode 100644 vendor/golang.org/x/text/runes/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/runes/cond.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/runes/runes.go (100%) create mode 100644 vendor/golang.org/x/text/secure/bidirule/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/secure/bidirule/bidirule.go (100%) create mode 100644 vendor/golang.org/x/text/transform/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/transform/transform.go (100%) create mode 100644 vendor/golang.org/x/text/unicode/bidi/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/bidi.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/bracket.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/core.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/gen.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/gen_ranges.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/gen_trieval.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/prop.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/tables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/bidi/trieval.go (100%) create mode 100644 vendor/golang.org/x/text/unicode/norm/BUILD.bazel rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/composition.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/forminfo.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/input.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/iter.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/maketables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/normalize.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/readwriter.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/tables.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/transform.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/trie.go (100%) rename {_vendor/src => vendor}/golang.org/x/text/unicode/norm/triegen.go (100%) rename {_vendor/src => vendor}/google.golang.org/genproto/LICENSE (100%) create mode 100644 vendor/google.golang.org/genproto/googleapis/rpc/status/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/genproto/googleapis/rpc/status/status.pb.go (100%) create mode 100644 vendor/google.golang.org/grpc/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/LICENSE (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/PATENTS (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/backoff.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/balancer.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/call.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/clientconn.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/codec.go (100%) create mode 100644 vendor/google.golang.org/grpc/codes/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/codes/code_string.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/codes/codes.go (100%) create mode 100644 vendor/google.golang.org/grpc/credentials/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/credentials/credentials.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/credentials/credentials_util_go17.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/credentials/credentials_util_go18.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/credentials/credentials_util_pre_go17.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/doc.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/go16.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/go17.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/grpclb.go (100%) create mode 100644 vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/grpclb/grpc_lb_v1/grpclb.pb.go (100%) create mode 100644 vendor/google.golang.org/grpc/grpclog/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/grpclog/logger.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/interceptor.go (100%) create mode 100644 vendor/google.golang.org/grpc/internal/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/internal/internal.go (100%) create mode 100644 vendor/google.golang.org/grpc/keepalive/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/keepalive/keepalive.go (100%) create mode 100644 vendor/google.golang.org/grpc/metadata/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/metadata/metadata.go (100%) create mode 100644 vendor/google.golang.org/grpc/naming/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/naming/naming.go (100%) create mode 100644 vendor/google.golang.org/grpc/peer/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/peer/peer.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/proxy.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/rpc_util.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/server.go (100%) create mode 100644 vendor/google.golang.org/grpc/stats/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/stats/handlers.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/stats/stats.go (100%) create mode 100644 vendor/google.golang.org/grpc/status/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/status/status.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/stream.go (100%) create mode 100644 vendor/google.golang.org/grpc/tap/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/tap/tap.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/trace.go (100%) create mode 100644 vendor/google.golang.org/grpc/transport/BUILD.bazel rename {_vendor/src => vendor}/google.golang.org/grpc/transport/control.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/transport/go16.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/transport/go17.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/transport/handler_server.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/transport/http2_client.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/transport/http2_server.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/transport/http_util.go (100%) rename {_vendor/src => vendor}/google.golang.org/grpc/transport/transport.go (100%) diff --git a/vendor/github.com/Sirupsen/logrus/BUILD.bazel b/vendor/github.com/Sirupsen/logrus/BUILD.bazel new file mode 100644 index 0000000000000..5ccf9d0d043e6 --- /dev/null +++ b/vendor/github.com/Sirupsen/logrus/BUILD.bazel @@ -0,0 +1,32 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "alt_exit.go", + "doc.go", + "entry.go", + "exported.go", + "formatter.go", + "hooks.go", + "json_formatter.go", + "logger.go", + "logrus.go", + "text_formatter.go", + "writer.go", + ] + select({ + "@io_bazel_rules_go//go/platform:darwin_amd64": [ + "terminal_bsd.go", + "terminal_notwindows.go", + ], + "@io_bazel_rules_go//go/platform:linux_amd64": [ + "terminal_linux.go", + "terminal_notwindows.go", + ], + "@io_bazel_rules_go//go/platform:windows_amd64": [ + "terminal_windows.go", + ], + "//conditions:default": [], + }), + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/Sirupsen/logrus/LICENSE b/vendor/github.com/Sirupsen/logrus/LICENSE similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/LICENSE rename to vendor/github.com/Sirupsen/logrus/LICENSE diff --git a/_vendor/src/github.com/Sirupsen/logrus/alt_exit.go b/vendor/github.com/Sirupsen/logrus/alt_exit.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/alt_exit.go rename to vendor/github.com/Sirupsen/logrus/alt_exit.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/doc.go b/vendor/github.com/Sirupsen/logrus/doc.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/doc.go rename to vendor/github.com/Sirupsen/logrus/doc.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/entry.go b/vendor/github.com/Sirupsen/logrus/entry.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/entry.go rename to vendor/github.com/Sirupsen/logrus/entry.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/exported.go b/vendor/github.com/Sirupsen/logrus/exported.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/exported.go rename to vendor/github.com/Sirupsen/logrus/exported.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/formatter.go b/vendor/github.com/Sirupsen/logrus/formatter.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/formatter.go rename to vendor/github.com/Sirupsen/logrus/formatter.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/hooks.go b/vendor/github.com/Sirupsen/logrus/hooks.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/hooks.go rename to vendor/github.com/Sirupsen/logrus/hooks.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/json_formatter.go b/vendor/github.com/Sirupsen/logrus/json_formatter.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/json_formatter.go rename to vendor/github.com/Sirupsen/logrus/json_formatter.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/logger.go b/vendor/github.com/Sirupsen/logrus/logger.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/logger.go rename to vendor/github.com/Sirupsen/logrus/logger.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/logrus.go b/vendor/github.com/Sirupsen/logrus/logrus.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/logrus.go rename to vendor/github.com/Sirupsen/logrus/logrus.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/terminal_appengine.go b/vendor/github.com/Sirupsen/logrus/terminal_appengine.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/terminal_appengine.go rename to vendor/github.com/Sirupsen/logrus/terminal_appengine.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/terminal_bsd.go b/vendor/github.com/Sirupsen/logrus/terminal_bsd.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/terminal_bsd.go rename to vendor/github.com/Sirupsen/logrus/terminal_bsd.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/terminal_linux.go b/vendor/github.com/Sirupsen/logrus/terminal_linux.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/terminal_linux.go rename to vendor/github.com/Sirupsen/logrus/terminal_linux.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/terminal_notwindows.go b/vendor/github.com/Sirupsen/logrus/terminal_notwindows.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/terminal_notwindows.go rename to vendor/github.com/Sirupsen/logrus/terminal_notwindows.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/terminal_solaris.go b/vendor/github.com/Sirupsen/logrus/terminal_solaris.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/terminal_solaris.go rename to vendor/github.com/Sirupsen/logrus/terminal_solaris.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/terminal_windows.go b/vendor/github.com/Sirupsen/logrus/terminal_windows.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/terminal_windows.go rename to vendor/github.com/Sirupsen/logrus/terminal_windows.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/text_formatter.go b/vendor/github.com/Sirupsen/logrus/text_formatter.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/text_formatter.go rename to vendor/github.com/Sirupsen/logrus/text_formatter.go diff --git a/_vendor/src/github.com/Sirupsen/logrus/writer.go b/vendor/github.com/Sirupsen/logrus/writer.go similarity index 100% rename from _vendor/src/github.com/Sirupsen/logrus/writer.go rename to vendor/github.com/Sirupsen/logrus/writer.go diff --git a/_vendor/src/github.com/beorn7/perks/LICENSE b/vendor/github.com/beorn7/perks/LICENSE similarity index 100% rename from _vendor/src/github.com/beorn7/perks/LICENSE rename to vendor/github.com/beorn7/perks/LICENSE diff --git a/vendor/github.com/beorn7/perks/quantile/BUILD.bazel b/vendor/github.com/beorn7/perks/quantile/BUILD.bazel new file mode 100644 index 0000000000000..ec8fc1ef25859 --- /dev/null +++ b/vendor/github.com/beorn7/perks/quantile/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["stream.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/beorn7/perks/quantile/stream.go b/vendor/github.com/beorn7/perks/quantile/stream.go similarity index 100% rename from _vendor/src/github.com/beorn7/perks/quantile/stream.go rename to vendor/github.com/beorn7/perks/quantile/stream.go diff --git a/vendor/github.com/boltdb/bolt/BUILD.bazel b/vendor/github.com/boltdb/bolt/BUILD.bazel new file mode 100644 index 0000000000000..88c1efdb5c5fd --- /dev/null +++ b/vendor/github.com/boltdb/bolt/BUILD.bazel @@ -0,0 +1,32 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "bolt_unix.go", + "boltsync_unix.go", + "bucket.go", + "cursor.go", + "db.go", + "doc.go", + "errors.go", + "freelist.go", + "node.go", + "page.go", + "tx.go", + ] + select({ + "@io_bazel_rules_go//go/platform:darwin_amd64": [ + "bolt_amd64.go", + ], + "@io_bazel_rules_go//go/platform:linux_amd64": [ + "bolt_amd64.go", + "bolt_linux.go", + ], + "@io_bazel_rules_go//go/platform:windows_amd64": [ + "bolt_amd64.go", + "bolt_windows.go", + ], + "//conditions:default": [], + }), + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/boltdb/bolt/LICENSE b/vendor/github.com/boltdb/bolt/LICENSE similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/LICENSE rename to vendor/github.com/boltdb/bolt/LICENSE diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_386.go b/vendor/github.com/boltdb/bolt/bolt_386.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_386.go rename to vendor/github.com/boltdb/bolt/bolt_386.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_amd64.go b/vendor/github.com/boltdb/bolt/bolt_amd64.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_amd64.go rename to vendor/github.com/boltdb/bolt/bolt_amd64.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_arm.go b/vendor/github.com/boltdb/bolt/bolt_arm.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_arm.go rename to vendor/github.com/boltdb/bolt/bolt_arm.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_arm64.go b/vendor/github.com/boltdb/bolt/bolt_arm64.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_arm64.go rename to vendor/github.com/boltdb/bolt/bolt_arm64.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_linux.go b/vendor/github.com/boltdb/bolt/bolt_linux.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_linux.go rename to vendor/github.com/boltdb/bolt/bolt_linux.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_openbsd.go b/vendor/github.com/boltdb/bolt/bolt_openbsd.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_openbsd.go rename to vendor/github.com/boltdb/bolt/bolt_openbsd.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_ppc.go b/vendor/github.com/boltdb/bolt/bolt_ppc.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_ppc.go rename to vendor/github.com/boltdb/bolt/bolt_ppc.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_ppc64.go b/vendor/github.com/boltdb/bolt/bolt_ppc64.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_ppc64.go rename to vendor/github.com/boltdb/bolt/bolt_ppc64.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_ppc64le.go b/vendor/github.com/boltdb/bolt/bolt_ppc64le.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_ppc64le.go rename to vendor/github.com/boltdb/bolt/bolt_ppc64le.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_s390x.go b/vendor/github.com/boltdb/bolt/bolt_s390x.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_s390x.go rename to vendor/github.com/boltdb/bolt/bolt_s390x.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_unix.go b/vendor/github.com/boltdb/bolt/bolt_unix.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_unix.go rename to vendor/github.com/boltdb/bolt/bolt_unix.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_unix_solaris.go b/vendor/github.com/boltdb/bolt/bolt_unix_solaris.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_unix_solaris.go rename to vendor/github.com/boltdb/bolt/bolt_unix_solaris.go diff --git a/_vendor/src/github.com/boltdb/bolt/bolt_windows.go b/vendor/github.com/boltdb/bolt/bolt_windows.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bolt_windows.go rename to vendor/github.com/boltdb/bolt/bolt_windows.go diff --git a/_vendor/src/github.com/boltdb/bolt/boltsync_unix.go b/vendor/github.com/boltdb/bolt/boltsync_unix.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/boltsync_unix.go rename to vendor/github.com/boltdb/bolt/boltsync_unix.go diff --git a/_vendor/src/github.com/boltdb/bolt/bucket.go b/vendor/github.com/boltdb/bolt/bucket.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/bucket.go rename to vendor/github.com/boltdb/bolt/bucket.go diff --git a/_vendor/src/github.com/boltdb/bolt/cursor.go b/vendor/github.com/boltdb/bolt/cursor.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/cursor.go rename to vendor/github.com/boltdb/bolt/cursor.go diff --git a/_vendor/src/github.com/boltdb/bolt/db.go b/vendor/github.com/boltdb/bolt/db.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/db.go rename to vendor/github.com/boltdb/bolt/db.go diff --git a/_vendor/src/github.com/boltdb/bolt/doc.go b/vendor/github.com/boltdb/bolt/doc.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/doc.go rename to vendor/github.com/boltdb/bolt/doc.go diff --git a/_vendor/src/github.com/boltdb/bolt/errors.go b/vendor/github.com/boltdb/bolt/errors.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/errors.go rename to vendor/github.com/boltdb/bolt/errors.go diff --git a/_vendor/src/github.com/boltdb/bolt/freelist.go b/vendor/github.com/boltdb/bolt/freelist.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/freelist.go rename to vendor/github.com/boltdb/bolt/freelist.go diff --git a/_vendor/src/github.com/boltdb/bolt/node.go b/vendor/github.com/boltdb/bolt/node.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/node.go rename to vendor/github.com/boltdb/bolt/node.go diff --git a/_vendor/src/github.com/boltdb/bolt/page.go b/vendor/github.com/boltdb/bolt/page.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/page.go rename to vendor/github.com/boltdb/bolt/page.go diff --git a/_vendor/src/github.com/boltdb/bolt/tx.go b/vendor/github.com/boltdb/bolt/tx.go similarity index 100% rename from _vendor/src/github.com/boltdb/bolt/tx.go rename to vendor/github.com/boltdb/bolt/tx.go diff --git a/_vendor/src/github.com/coreos/etcd/LICENSE b/vendor/github.com/coreos/etcd/LICENSE similarity index 100% rename from _vendor/src/github.com/coreos/etcd/LICENSE rename to vendor/github.com/coreos/etcd/LICENSE diff --git a/_vendor/src/github.com/coreos/etcd/NOTICE b/vendor/github.com/coreos/etcd/NOTICE similarity index 100% rename from _vendor/src/github.com/coreos/etcd/NOTICE rename to vendor/github.com/coreos/etcd/NOTICE diff --git a/vendor/github.com/coreos/etcd/auth/authpb/BUILD.bazel b/vendor/github.com/coreos/etcd/auth/authpb/BUILD.bazel new file mode 100644 index 0000000000000..702f42ef5e6c1 --- /dev/null +++ b/vendor/github.com/coreos/etcd/auth/authpb/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["auth.pb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/coreos/etcd/auth/authpb/auth.pb.go b/vendor/github.com/coreos/etcd/auth/authpb/auth.pb.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/auth/authpb/auth.pb.go rename to vendor/github.com/coreos/etcd/auth/authpb/auth.pb.go diff --git a/vendor/github.com/coreos/etcd/clientv3/BUILD.bazel b/vendor/github.com/coreos/etcd/clientv3/BUILD.bazel new file mode 100644 index 0000000000000..d520e65d07773 --- /dev/null +++ b/vendor/github.com/coreos/etcd/clientv3/BUILD.bazel @@ -0,0 +1,37 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "auth.go", + "balancer.go", + "client.go", + "cluster.go", + "compact_op.go", + "compare.go", + "config.go", + "doc.go", + "kv.go", + "lease.go", + "logger.go", + "maintenance.go", + "op.go", + "retry.go", + "sort.go", + "txn.go", + "watch.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/coreos/etcd/auth/authpb:go_default_library", + "//vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes:go_default_library", + "//vendor/github.com/coreos/etcd/etcdserver/etcdserverpb:go_default_library", + "//vendor/github.com/coreos/etcd/mvcc/mvccpb:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc:go_default_library", + "//vendor/google.golang.org/grpc/codes:go_default_library", + "//vendor/google.golang.org/grpc/credentials:go_default_library", + "//vendor/google.golang.org/grpc/grpclog:go_default_library", + "//vendor/google.golang.org/grpc/metadata:go_default_library", + ], +) diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/auth.go b/vendor/github.com/coreos/etcd/clientv3/auth.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/auth.go rename to vendor/github.com/coreos/etcd/clientv3/auth.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/balancer.go b/vendor/github.com/coreos/etcd/clientv3/balancer.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/balancer.go rename to vendor/github.com/coreos/etcd/clientv3/balancer.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/client.go b/vendor/github.com/coreos/etcd/clientv3/client.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/client.go rename to vendor/github.com/coreos/etcd/clientv3/client.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/cluster.go b/vendor/github.com/coreos/etcd/clientv3/cluster.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/cluster.go rename to vendor/github.com/coreos/etcd/clientv3/cluster.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/compact_op.go b/vendor/github.com/coreos/etcd/clientv3/compact_op.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/compact_op.go rename to vendor/github.com/coreos/etcd/clientv3/compact_op.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/compare.go b/vendor/github.com/coreos/etcd/clientv3/compare.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/compare.go rename to vendor/github.com/coreos/etcd/clientv3/compare.go diff --git a/vendor/github.com/coreos/etcd/clientv3/concurrency/BUILD.bazel b/vendor/github.com/coreos/etcd/clientv3/concurrency/BUILD.bazel new file mode 100644 index 0000000000000..17bc7b1319451 --- /dev/null +++ b/vendor/github.com/coreos/etcd/clientv3/concurrency/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "election.go", + "key.go", + "mutex.go", + "session.go", + "stm.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/coreos/etcd/clientv3:go_default_library", + "//vendor/github.com/coreos/etcd/etcdserver/etcdserverpb:go_default_library", + "//vendor/github.com/coreos/etcd/mvcc/mvccpb:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/concurrency/doc.go b/vendor/github.com/coreos/etcd/clientv3/concurrency/doc.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/concurrency/doc.go rename to vendor/github.com/coreos/etcd/clientv3/concurrency/doc.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/concurrency/election.go b/vendor/github.com/coreos/etcd/clientv3/concurrency/election.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/concurrency/election.go rename to vendor/github.com/coreos/etcd/clientv3/concurrency/election.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/concurrency/key.go b/vendor/github.com/coreos/etcd/clientv3/concurrency/key.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/concurrency/key.go rename to vendor/github.com/coreos/etcd/clientv3/concurrency/key.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/concurrency/mutex.go b/vendor/github.com/coreos/etcd/clientv3/concurrency/mutex.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/concurrency/mutex.go rename to vendor/github.com/coreos/etcd/clientv3/concurrency/mutex.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/concurrency/session.go b/vendor/github.com/coreos/etcd/clientv3/concurrency/session.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/concurrency/session.go rename to vendor/github.com/coreos/etcd/clientv3/concurrency/session.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/concurrency/stm.go b/vendor/github.com/coreos/etcd/clientv3/concurrency/stm.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/concurrency/stm.go rename to vendor/github.com/coreos/etcd/clientv3/concurrency/stm.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/config.go b/vendor/github.com/coreos/etcd/clientv3/config.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/config.go rename to vendor/github.com/coreos/etcd/clientv3/config.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/doc.go b/vendor/github.com/coreos/etcd/clientv3/doc.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/doc.go rename to vendor/github.com/coreos/etcd/clientv3/doc.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/kv.go b/vendor/github.com/coreos/etcd/clientv3/kv.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/kv.go rename to vendor/github.com/coreos/etcd/clientv3/kv.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/lease.go b/vendor/github.com/coreos/etcd/clientv3/lease.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/lease.go rename to vendor/github.com/coreos/etcd/clientv3/lease.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/logger.go b/vendor/github.com/coreos/etcd/clientv3/logger.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/logger.go rename to vendor/github.com/coreos/etcd/clientv3/logger.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/maintenance.go b/vendor/github.com/coreos/etcd/clientv3/maintenance.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/maintenance.go rename to vendor/github.com/coreos/etcd/clientv3/maintenance.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/op.go b/vendor/github.com/coreos/etcd/clientv3/op.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/op.go rename to vendor/github.com/coreos/etcd/clientv3/op.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/retry.go b/vendor/github.com/coreos/etcd/clientv3/retry.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/retry.go rename to vendor/github.com/coreos/etcd/clientv3/retry.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/sort.go b/vendor/github.com/coreos/etcd/clientv3/sort.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/sort.go rename to vendor/github.com/coreos/etcd/clientv3/sort.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/txn.go b/vendor/github.com/coreos/etcd/clientv3/txn.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/txn.go rename to vendor/github.com/coreos/etcd/clientv3/txn.go diff --git a/_vendor/src/github.com/coreos/etcd/clientv3/watch.go b/vendor/github.com/coreos/etcd/clientv3/watch.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/clientv3/watch.go rename to vendor/github.com/coreos/etcd/clientv3/watch.go diff --git a/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/BUILD.bazel b/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/BUILD.bazel new file mode 100644 index 0000000000000..4a6f3c4d9d8a2 --- /dev/null +++ b/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/BUILD.bazel @@ -0,0 +1,15 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "error.go", + "md.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/google.golang.org/grpc:go_default_library", + "//vendor/google.golang.org/grpc/codes:go_default_library", + ], +) diff --git a/_vendor/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/doc.go b/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/doc.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/doc.go rename to vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/doc.go diff --git a/_vendor/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go b/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go rename to vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/error.go diff --git a/_vendor/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/md.go b/vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/md.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/md.go rename to vendor/github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes/md.go diff --git a/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/BUILD.bazel b/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/BUILD.bazel new file mode 100644 index 0000000000000..4256226a631ac --- /dev/null +++ b/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/BUILD.bazel @@ -0,0 +1,23 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "etcdserver.pb.go", + "raft_internal.pb.go", + "rpc.pb.go", + "rpc.pb.gw.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/coreos/etcd/auth/authpb:go_default_library", + "//vendor/github.com/coreos/etcd/mvcc/mvccpb:go_default_library", + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/grpc-ecosystem/grpc-gateway/runtime:go_default_library", + "//vendor/github.com/grpc-ecosystem/grpc-gateway/utilities:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc:go_default_library", + "//vendor/google.golang.org/grpc/codes:go_default_library", + "//vendor/google.golang.org/grpc/grpclog:go_default_library", + ], +) diff --git a/_vendor/src/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go b/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go rename to vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/etcdserver.pb.go diff --git a/_vendor/src/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go b/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go rename to vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/raft_internal.pb.go diff --git a/_vendor/src/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go b/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go rename to vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.go diff --git a/_vendor/src/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.gw.go b/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.gw.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.gw.go rename to vendor/github.com/coreos/etcd/etcdserver/etcdserverpb/rpc.pb.gw.go diff --git a/vendor/github.com/coreos/etcd/mvcc/mvccpb/BUILD.bazel b/vendor/github.com/coreos/etcd/mvcc/mvccpb/BUILD.bazel new file mode 100644 index 0000000000000..5cad6e1f77bc9 --- /dev/null +++ b/vendor/github.com/coreos/etcd/mvcc/mvccpb/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["kv.pb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go b/vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go rename to vendor/github.com/coreos/etcd/mvcc/mvccpb/kv.pb.go diff --git a/vendor/github.com/coreos/etcd/pkg/monotime/BUILD.bazel b/vendor/github.com/coreos/etcd/pkg/monotime/BUILD.bazel new file mode 100644 index 0000000000000..1e3e377bea8e6 --- /dev/null +++ b/vendor/github.com/coreos/etcd/pkg/monotime/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "issue15006.s", + "monotime.go", + "nanotime.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/coreos/etcd/pkg/monotime/issue15006.s b/vendor/github.com/coreos/etcd/pkg/monotime/issue15006.s similarity index 100% rename from _vendor/src/github.com/coreos/etcd/pkg/monotime/issue15006.s rename to vendor/github.com/coreos/etcd/pkg/monotime/issue15006.s diff --git a/_vendor/src/github.com/coreos/etcd/pkg/monotime/monotime.go b/vendor/github.com/coreos/etcd/pkg/monotime/monotime.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/pkg/monotime/monotime.go rename to vendor/github.com/coreos/etcd/pkg/monotime/monotime.go diff --git a/_vendor/src/github.com/coreos/etcd/pkg/monotime/nanotime.go b/vendor/github.com/coreos/etcd/pkg/monotime/nanotime.go similarity index 100% rename from _vendor/src/github.com/coreos/etcd/pkg/monotime/nanotime.go rename to vendor/github.com/coreos/etcd/pkg/monotime/nanotime.go diff --git a/_vendor/src/github.com/cznic/golex/LICENSE b/vendor/github.com/cznic/golex/LICENSE similarity index 100% rename from _vendor/src/github.com/cznic/golex/LICENSE rename to vendor/github.com/cznic/golex/LICENSE diff --git a/vendor/github.com/cznic/golex/lex/BUILD.bazel b/vendor/github.com/cznic/golex/lex/BUILD.bazel new file mode 100644 index 0000000000000..a3eb4fca66332 --- /dev/null +++ b/vendor/github.com/cznic/golex/lex/BUILD.bazel @@ -0,0 +1,10 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "api.go", + "doc.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/cznic/golex/lex/api.go b/vendor/github.com/cznic/golex/lex/api.go similarity index 100% rename from _vendor/src/github.com/cznic/golex/lex/api.go rename to vendor/github.com/cznic/golex/lex/api.go diff --git a/_vendor/src/github.com/cznic/golex/lex/doc.go b/vendor/github.com/cznic/golex/lex/doc.go similarity index 100% rename from _vendor/src/github.com/cznic/golex/lex/doc.go rename to vendor/github.com/cznic/golex/lex/doc.go diff --git a/vendor/github.com/cznic/mathutil/BUILD.bazel b/vendor/github.com/cznic/mathutil/BUILD.bazel new file mode 100644 index 0000000000000..5f282420a14ed --- /dev/null +++ b/vendor/github.com/cznic/mathutil/BUILD.bazel @@ -0,0 +1,17 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "bits.go", + "envelope.go", + "mathutil.go", + "permute.go", + "primes.go", + "rat.go", + "rnd.go", + "tables.go", + "test_deps.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/cznic/mathutil/LICENSE b/vendor/github.com/cznic/mathutil/LICENSE similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/LICENSE rename to vendor/github.com/cznic/mathutil/LICENSE diff --git a/_vendor/src/github.com/cznic/mathutil/bits.go b/vendor/github.com/cznic/mathutil/bits.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/bits.go rename to vendor/github.com/cznic/mathutil/bits.go diff --git a/_vendor/src/github.com/cznic/mathutil/envelope.go b/vendor/github.com/cznic/mathutil/envelope.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/envelope.go rename to vendor/github.com/cznic/mathutil/envelope.go diff --git a/_vendor/src/github.com/cznic/mathutil/mathutil.go b/vendor/github.com/cznic/mathutil/mathutil.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/mathutil.go rename to vendor/github.com/cznic/mathutil/mathutil.go diff --git a/_vendor/src/github.com/cznic/mathutil/permute.go b/vendor/github.com/cznic/mathutil/permute.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/permute.go rename to vendor/github.com/cznic/mathutil/permute.go diff --git a/_vendor/src/github.com/cznic/mathutil/primes.go b/vendor/github.com/cznic/mathutil/primes.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/primes.go rename to vendor/github.com/cznic/mathutil/primes.go diff --git a/_vendor/src/github.com/cznic/mathutil/rat.go b/vendor/github.com/cznic/mathutil/rat.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/rat.go rename to vendor/github.com/cznic/mathutil/rat.go diff --git a/_vendor/src/github.com/cznic/mathutil/rnd.go b/vendor/github.com/cznic/mathutil/rnd.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/rnd.go rename to vendor/github.com/cznic/mathutil/rnd.go diff --git a/_vendor/src/github.com/cznic/mathutil/tables.go b/vendor/github.com/cznic/mathutil/tables.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/tables.go rename to vendor/github.com/cznic/mathutil/tables.go diff --git a/_vendor/src/github.com/cznic/mathutil/test_deps.go b/vendor/github.com/cznic/mathutil/test_deps.go similarity index 100% rename from _vendor/src/github.com/cznic/mathutil/test_deps.go rename to vendor/github.com/cznic/mathutil/test_deps.go diff --git a/vendor/github.com/cznic/parser/yacc/BUILD.bazel b/vendor/github.com/cznic/parser/yacc/BUILD.bazel new file mode 100644 index 0000000000000..9e058a2a53832 --- /dev/null +++ b/vendor/github.com/cznic/parser/yacc/BUILD.bazel @@ -0,0 +1,18 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "api.go", + "ast.go", + "goscanner.go", + "lexer.go", + "parser.go", + "scanner.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/cznic/golex/lex:go_default_library", + "//vendor/github.com/cznic/strutil:go_default_library", + ], +) diff --git a/_vendor/src/github.com/cznic/parser/yacc/LICENSE b/vendor/github.com/cznic/parser/yacc/LICENSE similarity index 100% rename from _vendor/src/github.com/cznic/parser/yacc/LICENSE rename to vendor/github.com/cznic/parser/yacc/LICENSE diff --git a/_vendor/src/github.com/cznic/parser/yacc/api.go b/vendor/github.com/cznic/parser/yacc/api.go similarity index 100% rename from _vendor/src/github.com/cznic/parser/yacc/api.go rename to vendor/github.com/cznic/parser/yacc/api.go diff --git a/_vendor/src/github.com/cznic/parser/yacc/ast.go b/vendor/github.com/cznic/parser/yacc/ast.go similarity index 100% rename from _vendor/src/github.com/cznic/parser/yacc/ast.go rename to vendor/github.com/cznic/parser/yacc/ast.go diff --git a/_vendor/src/github.com/cznic/parser/yacc/generate.go b/vendor/github.com/cznic/parser/yacc/generate.go similarity index 100% rename from _vendor/src/github.com/cznic/parser/yacc/generate.go rename to vendor/github.com/cznic/parser/yacc/generate.go diff --git a/_vendor/src/github.com/cznic/parser/yacc/goscanner.go b/vendor/github.com/cznic/parser/yacc/goscanner.go similarity index 100% rename from _vendor/src/github.com/cznic/parser/yacc/goscanner.go rename to vendor/github.com/cznic/parser/yacc/goscanner.go diff --git a/_vendor/src/github.com/cznic/parser/yacc/lexer.go b/vendor/github.com/cznic/parser/yacc/lexer.go similarity index 100% rename from _vendor/src/github.com/cznic/parser/yacc/lexer.go rename to vendor/github.com/cznic/parser/yacc/lexer.go diff --git a/_vendor/src/github.com/cznic/parser/yacc/parser.go b/vendor/github.com/cznic/parser/yacc/parser.go similarity index 100% rename from _vendor/src/github.com/cznic/parser/yacc/parser.go rename to vendor/github.com/cznic/parser/yacc/parser.go diff --git a/_vendor/src/github.com/cznic/parser/yacc/scanner.go b/vendor/github.com/cznic/parser/yacc/scanner.go similarity index 100% rename from _vendor/src/github.com/cznic/parser/yacc/scanner.go rename to vendor/github.com/cznic/parser/yacc/scanner.go diff --git a/vendor/github.com/cznic/sortutil/BUILD.bazel b/vendor/github.com/cznic/sortutil/BUILD.bazel new file mode 100644 index 0000000000000..cb46cac6c026c --- /dev/null +++ b/vendor/github.com/cznic/sortutil/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["sortutil.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/cznic/sortutil/LICENSE b/vendor/github.com/cznic/sortutil/LICENSE similarity index 100% rename from _vendor/src/github.com/cznic/sortutil/LICENSE rename to vendor/github.com/cznic/sortutil/LICENSE diff --git a/_vendor/src/github.com/cznic/sortutil/sortutil.go b/vendor/github.com/cznic/sortutil/sortutil.go similarity index 100% rename from _vendor/src/github.com/cznic/sortutil/sortutil.go rename to vendor/github.com/cznic/sortutil/sortutil.go diff --git a/vendor/github.com/cznic/strutil/BUILD.bazel b/vendor/github.com/cznic/strutil/BUILD.bazel new file mode 100644 index 0000000000000..4481a97caaa36 --- /dev/null +++ b/vendor/github.com/cznic/strutil/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["strutil.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/cznic/strutil/LICENSE b/vendor/github.com/cznic/strutil/LICENSE similarity index 100% rename from _vendor/src/github.com/cznic/strutil/LICENSE rename to vendor/github.com/cznic/strutil/LICENSE diff --git a/_vendor/src/github.com/cznic/strutil/strutil.go b/vendor/github.com/cznic/strutil/strutil.go similarity index 100% rename from _vendor/src/github.com/cznic/strutil/strutil.go rename to vendor/github.com/cznic/strutil/strutil.go diff --git a/vendor/github.com/cznic/y/BUILD.bazel b/vendor/github.com/cznic/y/BUILD.bazel new file mode 100644 index 0000000000000..48ab7e5131196 --- /dev/null +++ b/vendor/github.com/cznic/y/BUILD.bazel @@ -0,0 +1,15 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "api.go", + "y.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/cznic/mathutil:go_default_library", + "//vendor/github.com/cznic/parser/yacc:go_default_library", + "//vendor/github.com/cznic/strutil:go_default_library", + ], +) diff --git a/_vendor/src/github.com/cznic/y/LICENSE b/vendor/github.com/cznic/y/LICENSE similarity index 100% rename from _vendor/src/github.com/cznic/y/LICENSE rename to vendor/github.com/cznic/y/LICENSE diff --git a/_vendor/src/github.com/cznic/y/api.go b/vendor/github.com/cznic/y/api.go similarity index 100% rename from _vendor/src/github.com/cznic/y/api.go rename to vendor/github.com/cznic/y/api.go diff --git a/_vendor/src/github.com/cznic/y/y.go b/vendor/github.com/cznic/y/y.go similarity index 100% rename from _vendor/src/github.com/cznic/y/y.go rename to vendor/github.com/cznic/y/y.go diff --git a/vendor/github.com/go-sql-driver/mysql/BUILD.bazel b/vendor/github.com/go-sql-driver/mysql/BUILD.bazel new file mode 100644 index 0000000000000..c251b3e3ceb7f --- /dev/null +++ b/vendor/github.com/go-sql-driver/mysql/BUILD.bazel @@ -0,0 +1,21 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "buffer.go", + "collations.go", + "connection.go", + "const.go", + "driver.go", + "errors.go", + "infile.go", + "packets.go", + "result.go", + "rows.go", + "statement.go", + "transaction.go", + "utils.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/go-sql-driver/mysql/LICENSE b/vendor/github.com/go-sql-driver/mysql/LICENSE similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/LICENSE rename to vendor/github.com/go-sql-driver/mysql/LICENSE diff --git a/_vendor/src/github.com/go-sql-driver/mysql/appengine.go b/vendor/github.com/go-sql-driver/mysql/appengine.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/appengine.go rename to vendor/github.com/go-sql-driver/mysql/appengine.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/buffer.go b/vendor/github.com/go-sql-driver/mysql/buffer.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/buffer.go rename to vendor/github.com/go-sql-driver/mysql/buffer.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/collations.go b/vendor/github.com/go-sql-driver/mysql/collations.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/collations.go rename to vendor/github.com/go-sql-driver/mysql/collations.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/connection.go b/vendor/github.com/go-sql-driver/mysql/connection.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/connection.go rename to vendor/github.com/go-sql-driver/mysql/connection.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/const.go b/vendor/github.com/go-sql-driver/mysql/const.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/const.go rename to vendor/github.com/go-sql-driver/mysql/const.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/driver.go b/vendor/github.com/go-sql-driver/mysql/driver.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/driver.go rename to vendor/github.com/go-sql-driver/mysql/driver.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/errors.go b/vendor/github.com/go-sql-driver/mysql/errors.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/errors.go rename to vendor/github.com/go-sql-driver/mysql/errors.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/infile.go b/vendor/github.com/go-sql-driver/mysql/infile.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/infile.go rename to vendor/github.com/go-sql-driver/mysql/infile.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/packets.go b/vendor/github.com/go-sql-driver/mysql/packets.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/packets.go rename to vendor/github.com/go-sql-driver/mysql/packets.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/result.go b/vendor/github.com/go-sql-driver/mysql/result.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/result.go rename to vendor/github.com/go-sql-driver/mysql/result.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/rows.go b/vendor/github.com/go-sql-driver/mysql/rows.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/rows.go rename to vendor/github.com/go-sql-driver/mysql/rows.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/statement.go b/vendor/github.com/go-sql-driver/mysql/statement.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/statement.go rename to vendor/github.com/go-sql-driver/mysql/statement.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/transaction.go b/vendor/github.com/go-sql-driver/mysql/transaction.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/transaction.go rename to vendor/github.com/go-sql-driver/mysql/transaction.go diff --git a/_vendor/src/github.com/go-sql-driver/mysql/utils.go b/vendor/github.com/go-sql-driver/mysql/utils.go similarity index 100% rename from _vendor/src/github.com/go-sql-driver/mysql/utils.go rename to vendor/github.com/go-sql-driver/mysql/utils.go diff --git a/_vendor/src/github.com/golang/protobuf/LICENSE b/vendor/github.com/golang/protobuf/LICENSE similarity index 100% rename from _vendor/src/github.com/golang/protobuf/LICENSE rename to vendor/github.com/golang/protobuf/LICENSE diff --git a/vendor/github.com/golang/protobuf/jsonpb/BUILD.bazel b/vendor/github.com/golang/protobuf/jsonpb/BUILD.bazel new file mode 100644 index 0000000000000..a24827cb188de --- /dev/null +++ b/vendor/github.com/golang/protobuf/jsonpb/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["jsonpb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/golang/protobuf/jsonpb/jsonpb.go b/vendor/github.com/golang/protobuf/jsonpb/jsonpb.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/jsonpb/jsonpb.go rename to vendor/github.com/golang/protobuf/jsonpb/jsonpb.go diff --git a/vendor/github.com/golang/protobuf/proto/BUILD.bazel b/vendor/github.com/golang/protobuf/proto/BUILD.bazel new file mode 100644 index 0000000000000..6f8d2345fd62b --- /dev/null +++ b/vendor/github.com/golang/protobuf/proto/BUILD.bazel @@ -0,0 +1,19 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "clone.go", + "decode.go", + "encode.go", + "equal.go", + "extensions.go", + "lib.go", + "message_set.go", + "pointer_unsafe.go", + "properties.go", + "text.go", + "text_parser.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/golang/protobuf/proto/clone.go b/vendor/github.com/golang/protobuf/proto/clone.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/clone.go rename to vendor/github.com/golang/protobuf/proto/clone.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/decode.go b/vendor/github.com/golang/protobuf/proto/decode.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/decode.go rename to vendor/github.com/golang/protobuf/proto/decode.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/encode.go b/vendor/github.com/golang/protobuf/proto/encode.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/encode.go rename to vendor/github.com/golang/protobuf/proto/encode.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/equal.go b/vendor/github.com/golang/protobuf/proto/equal.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/equal.go rename to vendor/github.com/golang/protobuf/proto/equal.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/extensions.go b/vendor/github.com/golang/protobuf/proto/extensions.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/extensions.go rename to vendor/github.com/golang/protobuf/proto/extensions.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/golang/protobuf/proto/lib.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/lib.go rename to vendor/github.com/golang/protobuf/proto/lib.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/message_set.go b/vendor/github.com/golang/protobuf/proto/message_set.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/message_set.go rename to vendor/github.com/golang/protobuf/proto/message_set.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/pointer_reflect.go b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/pointer_reflect.go rename to vendor/github.com/golang/protobuf/proto/pointer_reflect.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/pointer_unsafe.go b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/pointer_unsafe.go rename to vendor/github.com/golang/protobuf/proto/pointer_unsafe.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/properties.go b/vendor/github.com/golang/protobuf/proto/properties.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/properties.go rename to vendor/github.com/golang/protobuf/proto/properties.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/text.go b/vendor/github.com/golang/protobuf/proto/text.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/text.go rename to vendor/github.com/golang/protobuf/proto/text.go diff --git a/_vendor/src/github.com/golang/protobuf/proto/text_parser.go b/vendor/github.com/golang/protobuf/proto/text_parser.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/proto/text_parser.go rename to vendor/github.com/golang/protobuf/proto/text_parser.go diff --git a/vendor/github.com/golang/protobuf/ptypes/any/BUILD.bazel b/vendor/github.com/golang/protobuf/ptypes/any/BUILD.bazel new file mode 100644 index 0000000000000..510035740ef18 --- /dev/null +++ b/vendor/github.com/golang/protobuf/ptypes/any/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["any.pb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/golang/protobuf/ptypes/any/any.pb.go b/vendor/github.com/golang/protobuf/ptypes/any/any.pb.go similarity index 100% rename from _vendor/src/github.com/golang/protobuf/ptypes/any/any.pb.go rename to vendor/github.com/golang/protobuf/ptypes/any/any.pb.go diff --git a/vendor/github.com/golang/snappy/BUILD.bazel b/vendor/github.com/golang/snappy/BUILD.bazel new file mode 100644 index 0000000000000..eb27a6103d96e --- /dev/null +++ b/vendor/github.com/golang/snappy/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "decode.go", + "encode.go", + "snappy.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/golang/snappy/LICENSE b/vendor/github.com/golang/snappy/LICENSE similarity index 100% rename from _vendor/src/github.com/golang/snappy/LICENSE rename to vendor/github.com/golang/snappy/LICENSE diff --git a/_vendor/src/github.com/golang/snappy/decode.go b/vendor/github.com/golang/snappy/decode.go similarity index 100% rename from _vendor/src/github.com/golang/snappy/decode.go rename to vendor/github.com/golang/snappy/decode.go diff --git a/_vendor/src/github.com/golang/snappy/encode.go b/vendor/github.com/golang/snappy/encode.go similarity index 100% rename from _vendor/src/github.com/golang/snappy/encode.go rename to vendor/github.com/golang/snappy/encode.go diff --git a/_vendor/src/github.com/golang/snappy/snappy.go b/vendor/github.com/golang/snappy/snappy.go similarity index 100% rename from _vendor/src/github.com/golang/snappy/snappy.go rename to vendor/github.com/golang/snappy/snappy.go diff --git a/vendor/github.com/gorilla/context/BUILD.bazel b/vendor/github.com/gorilla/context/BUILD.bazel new file mode 100644 index 0000000000000..548ef00559d3f --- /dev/null +++ b/vendor/github.com/gorilla/context/BUILD.bazel @@ -0,0 +1,10 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "context.go", + "doc.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/gorilla/context/LICENSE b/vendor/github.com/gorilla/context/LICENSE similarity index 100% rename from _vendor/src/github.com/gorilla/context/LICENSE rename to vendor/github.com/gorilla/context/LICENSE diff --git a/_vendor/src/github.com/gorilla/context/context.go b/vendor/github.com/gorilla/context/context.go similarity index 100% rename from _vendor/src/github.com/gorilla/context/context.go rename to vendor/github.com/gorilla/context/context.go diff --git a/_vendor/src/github.com/gorilla/context/doc.go b/vendor/github.com/gorilla/context/doc.go similarity index 100% rename from _vendor/src/github.com/gorilla/context/doc.go rename to vendor/github.com/gorilla/context/doc.go diff --git a/vendor/github.com/gorilla/mux/BUILD.bazel b/vendor/github.com/gorilla/mux/BUILD.bazel new file mode 100644 index 0000000000000..6876beac863b4 --- /dev/null +++ b/vendor/github.com/gorilla/mux/BUILD.bazel @@ -0,0 +1,13 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "context_native.go", + "doc.go", + "mux.go", + "regexp.go", + "route.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/gorilla/mux/LICENSE b/vendor/github.com/gorilla/mux/LICENSE similarity index 100% rename from _vendor/src/github.com/gorilla/mux/LICENSE rename to vendor/github.com/gorilla/mux/LICENSE diff --git a/_vendor/src/github.com/gorilla/mux/context_gorilla.go b/vendor/github.com/gorilla/mux/context_gorilla.go similarity index 100% rename from _vendor/src/github.com/gorilla/mux/context_gorilla.go rename to vendor/github.com/gorilla/mux/context_gorilla.go diff --git a/_vendor/src/github.com/gorilla/mux/context_native.go b/vendor/github.com/gorilla/mux/context_native.go similarity index 100% rename from _vendor/src/github.com/gorilla/mux/context_native.go rename to vendor/github.com/gorilla/mux/context_native.go diff --git a/_vendor/src/github.com/gorilla/mux/doc.go b/vendor/github.com/gorilla/mux/doc.go similarity index 100% rename from _vendor/src/github.com/gorilla/mux/doc.go rename to vendor/github.com/gorilla/mux/doc.go diff --git a/_vendor/src/github.com/gorilla/mux/mux.go b/vendor/github.com/gorilla/mux/mux.go similarity index 100% rename from _vendor/src/github.com/gorilla/mux/mux.go rename to vendor/github.com/gorilla/mux/mux.go diff --git a/_vendor/src/github.com/gorilla/mux/regexp.go b/vendor/github.com/gorilla/mux/regexp.go similarity index 100% rename from _vendor/src/github.com/gorilla/mux/regexp.go rename to vendor/github.com/gorilla/mux/regexp.go diff --git a/_vendor/src/github.com/gorilla/mux/route.go b/vendor/github.com/gorilla/mux/route.go similarity index 100% rename from _vendor/src/github.com/gorilla/mux/route.go rename to vendor/github.com/gorilla/mux/route.go diff --git a/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/BUILD.bazel b/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/BUILD.bazel new file mode 100644 index 0000000000000..895841b394e72 --- /dev/null +++ b/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/BUILD.bazel @@ -0,0 +1,19 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "client.go", + "client_reporter.go", + "server.go", + "server_reporter.go", + "util.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc:go_default_library", + "//vendor/google.golang.org/grpc/codes:go_default_library", + ], +) diff --git a/_vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/LICENSE b/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/LICENSE similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/LICENSE rename to vendor/github.com/grpc-ecosystem/go-grpc-prometheus/LICENSE diff --git a/_vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/client.go b/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/client.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/client.go rename to vendor/github.com/grpc-ecosystem/go-grpc-prometheus/client.go diff --git a/_vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/client_reporter.go b/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/client_reporter.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/client_reporter.go rename to vendor/github.com/grpc-ecosystem/go-grpc-prometheus/client_reporter.go diff --git a/_vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/server.go b/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/server.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/server.go rename to vendor/github.com/grpc-ecosystem/go-grpc-prometheus/server.go diff --git a/_vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/server_reporter.go b/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/server_reporter.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/server_reporter.go rename to vendor/github.com/grpc-ecosystem/go-grpc-prometheus/server_reporter.go diff --git a/_vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/util.go b/vendor/github.com/grpc-ecosystem/go-grpc-prometheus/util.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/go-grpc-prometheus/util.go rename to vendor/github.com/grpc-ecosystem/go-grpc-prometheus/util.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt b/vendor/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt rename to vendor/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt diff --git a/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/BUILD.bazel b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/BUILD.bazel new file mode 100644 index 0000000000000..52f12562c9d3d --- /dev/null +++ b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/BUILD.bazel @@ -0,0 +1,32 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "context.go", + "convert.go", + "doc.go", + "errors.go", + "handler.go", + "marshal_json.go", + "marshal_jsonpb.go", + "marshaler.go", + "marshaler_registry.go", + "mux.go", + "pattern.go", + "proto2_convert.go", + "query.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/jsonpb:go_default_library", + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal:go_default_library", + "//vendor/github.com/grpc-ecosystem/grpc-gateway/utilities:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc:go_default_library", + "//vendor/google.golang.org/grpc/codes:go_default_library", + "//vendor/google.golang.org/grpc/grpclog:go_default_library", + "//vendor/google.golang.org/grpc/metadata:go_default_library", + ], +) diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/context.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/convert.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/convert.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/convert.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/convert.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/handler.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/handler.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/handler.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/handler.go diff --git a/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/BUILD.bazel b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/BUILD.bazel new file mode 100644 index 0000000000000..bc373ee08dc00 --- /dev/null +++ b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["stream_chunk.pb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.pb.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.pb.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.pb.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/internal/stream_chunk.pb.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_json.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_json.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_json.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_json.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_jsonpb.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_jsonpb.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_jsonpb.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshal_jsonpb.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler_registry.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler_registry.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler_registry.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/marshaler_registry.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/mux.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/mux.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/mux.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/mux.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/pattern.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/pattern.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/pattern.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/pattern.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/proto2_convert.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/proto2_convert.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/proto2_convert.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/proto2_convert.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/query.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/query.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/runtime/query.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/query.go diff --git a/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/BUILD.bazel b/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/BUILD.bazel new file mode 100644 index 0000000000000..12d373b624695 --- /dev/null +++ b/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "pattern.go", + "trie.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/pattern.go diff --git a/_vendor/src/github.com/grpc-ecosystem/grpc-gateway/utilities/trie.go b/vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/trie.go similarity index 100% rename from _vendor/src/github.com/grpc-ecosystem/grpc-gateway/utilities/trie.go rename to vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/trie.go diff --git a/vendor/github.com/juju/errors/BUILD.bazel b/vendor/github.com/juju/errors/BUILD.bazel new file mode 100644 index 0000000000000..f1a261b55d647 --- /dev/null +++ b/vendor/github.com/juju/errors/BUILD.bazel @@ -0,0 +1,13 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "error.go", + "errortypes.go", + "functions.go", + "path.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/juju/errors/LICENSE b/vendor/github.com/juju/errors/LICENSE similarity index 100% rename from _vendor/src/github.com/juju/errors/LICENSE rename to vendor/github.com/juju/errors/LICENSE diff --git a/_vendor/src/github.com/juju/errors/doc.go b/vendor/github.com/juju/errors/doc.go similarity index 100% rename from _vendor/src/github.com/juju/errors/doc.go rename to vendor/github.com/juju/errors/doc.go diff --git a/_vendor/src/github.com/juju/errors/error.go b/vendor/github.com/juju/errors/error.go similarity index 100% rename from _vendor/src/github.com/juju/errors/error.go rename to vendor/github.com/juju/errors/error.go diff --git a/_vendor/src/github.com/juju/errors/errortypes.go b/vendor/github.com/juju/errors/errortypes.go similarity index 100% rename from _vendor/src/github.com/juju/errors/errortypes.go rename to vendor/github.com/juju/errors/errortypes.go diff --git a/_vendor/src/github.com/juju/errors/functions.go b/vendor/github.com/juju/errors/functions.go similarity index 100% rename from _vendor/src/github.com/juju/errors/functions.go rename to vendor/github.com/juju/errors/functions.go diff --git a/_vendor/src/github.com/juju/errors/path.go b/vendor/github.com/juju/errors/path.go similarity index 100% rename from _vendor/src/github.com/juju/errors/path.go rename to vendor/github.com/juju/errors/path.go diff --git a/_vendor/src/github.com/matttproud/golang_protobuf_extensions/LICENSE b/vendor/github.com/matttproud/golang_protobuf_extensions/LICENSE similarity index 100% rename from _vendor/src/github.com/matttproud/golang_protobuf_extensions/LICENSE rename to vendor/github.com/matttproud/golang_protobuf_extensions/LICENSE diff --git a/_vendor/src/github.com/matttproud/golang_protobuf_extensions/NOTICE b/vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE similarity index 100% rename from _vendor/src/github.com/matttproud/golang_protobuf_extensions/NOTICE rename to vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE diff --git a/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/BUILD.bazel b/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/BUILD.bazel new file mode 100644 index 0000000000000..5383f32ea50e2 --- /dev/null +++ b/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "decode.go", + "doc.go", + "encode.go", + ], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go b/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go similarity index 100% rename from _vendor/src/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go rename to vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go diff --git a/_vendor/src/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go b/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go similarity index 100% rename from _vendor/src/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go rename to vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go diff --git a/_vendor/src/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go b/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go similarity index 100% rename from _vendor/src/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go rename to vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go diff --git a/vendor/github.com/ngaut/log/BUILD.bazel b/vendor/github.com/ngaut/log/BUILD.bazel new file mode 100644 index 0000000000000..101ca634ce4f4 --- /dev/null +++ b/vendor/github.com/ngaut/log/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "log.go", + ] + select({ + "@io_bazel_rules_go//go/platform:darwin_amd64": [ + "crash_unix.go", + ], + "@io_bazel_rules_go//go/platform:linux_amd64": [ + "crash_unix.go", + ], + "@io_bazel_rules_go//go/platform:windows_amd64": [ + "crash_win.go", + ], + "//conditions:default": [], + }), + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/ngaut/log/LICENSE b/vendor/github.com/ngaut/log/LICENSE similarity index 100% rename from _vendor/src/github.com/ngaut/log/LICENSE rename to vendor/github.com/ngaut/log/LICENSE diff --git a/_vendor/src/github.com/ngaut/log/crash_unix.go b/vendor/github.com/ngaut/log/crash_unix.go similarity index 100% rename from _vendor/src/github.com/ngaut/log/crash_unix.go rename to vendor/github.com/ngaut/log/crash_unix.go diff --git a/_vendor/src/github.com/ngaut/log/crash_win.go b/vendor/github.com/ngaut/log/crash_win.go similarity index 100% rename from _vendor/src/github.com/ngaut/log/crash_win.go rename to vendor/github.com/ngaut/log/crash_win.go diff --git a/_vendor/src/github.com/ngaut/log/log.go b/vendor/github.com/ngaut/log/log.go similarity index 100% rename from _vendor/src/github.com/ngaut/log/log.go rename to vendor/github.com/ngaut/log/log.go diff --git a/vendor/github.com/ngaut/pools/BUILD.bazel b/vendor/github.com/ngaut/pools/BUILD.bazel new file mode 100644 index 0000000000000..32eeb3dc941b8 --- /dev/null +++ b/vendor/github.com/ngaut/pools/BUILD.bazel @@ -0,0 +1,13 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "id_pool.go", + "numbered.go", + "resource_pool.go", + "roundrobin.go", + ], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/ngaut/sync2:go_default_library"], +) diff --git a/_vendor/src/github.com/ngaut/pools/id_pool.go b/vendor/github.com/ngaut/pools/id_pool.go similarity index 100% rename from _vendor/src/github.com/ngaut/pools/id_pool.go rename to vendor/github.com/ngaut/pools/id_pool.go diff --git a/_vendor/src/github.com/ngaut/pools/numbered.go b/vendor/github.com/ngaut/pools/numbered.go similarity index 100% rename from _vendor/src/github.com/ngaut/pools/numbered.go rename to vendor/github.com/ngaut/pools/numbered.go diff --git a/_vendor/src/github.com/ngaut/pools/resource_pool.go b/vendor/github.com/ngaut/pools/resource_pool.go similarity index 100% rename from _vendor/src/github.com/ngaut/pools/resource_pool.go rename to vendor/github.com/ngaut/pools/resource_pool.go diff --git a/_vendor/src/github.com/ngaut/pools/roundrobin.go b/vendor/github.com/ngaut/pools/roundrobin.go similarity index 100% rename from _vendor/src/github.com/ngaut/pools/roundrobin.go rename to vendor/github.com/ngaut/pools/roundrobin.go diff --git a/vendor/github.com/ngaut/sync2/BUILD.bazel b/vendor/github.com/ngaut/sync2/BUILD.bazel new file mode 100644 index 0000000000000..ad6993a9e18b3 --- /dev/null +++ b/vendor/github.com/ngaut/sync2/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "atomic.go", + "cond.go", + "semaphore.go", + "service_manager.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/ngaut/sync2/atomic.go b/vendor/github.com/ngaut/sync2/atomic.go similarity index 100% rename from _vendor/src/github.com/ngaut/sync2/atomic.go rename to vendor/github.com/ngaut/sync2/atomic.go diff --git a/_vendor/src/github.com/ngaut/sync2/cond.go b/vendor/github.com/ngaut/sync2/cond.go similarity index 100% rename from _vendor/src/github.com/ngaut/sync2/cond.go rename to vendor/github.com/ngaut/sync2/cond.go diff --git a/_vendor/src/github.com/ngaut/sync2/semaphore.go b/vendor/github.com/ngaut/sync2/semaphore.go similarity index 100% rename from _vendor/src/github.com/ngaut/sync2/semaphore.go rename to vendor/github.com/ngaut/sync2/semaphore.go diff --git a/_vendor/src/github.com/ngaut/sync2/service_manager.go b/vendor/github.com/ngaut/sync2/service_manager.go similarity index 100% rename from _vendor/src/github.com/ngaut/sync2/service_manager.go rename to vendor/github.com/ngaut/sync2/service_manager.go diff --git a/vendor/github.com/ngaut/systimemon/BUILD.bazel b/vendor/github.com/ngaut/systimemon/BUILD.bazel new file mode 100644 index 0000000000000..096b4061f215e --- /dev/null +++ b/vendor/github.com/ngaut/systimemon/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["systime_mon.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/ngaut/log:go_default_library"], +) diff --git a/_vendor/src/github.com/ngaut/systimemon/LICENSE b/vendor/github.com/ngaut/systimemon/LICENSE similarity index 100% rename from _vendor/src/github.com/ngaut/systimemon/LICENSE rename to vendor/github.com/ngaut/systimemon/LICENSE diff --git a/_vendor/src/github.com/ngaut/systimemon/systime_mon.go b/vendor/github.com/ngaut/systimemon/systime_mon.go similarity index 100% rename from _vendor/src/github.com/ngaut/systimemon/systime_mon.go rename to vendor/github.com/ngaut/systimemon/systime_mon.go diff --git a/_vendor/src/github.com/petar/GoLLRB/LICENSE b/vendor/github.com/petar/GoLLRB/LICENSE similarity index 100% rename from _vendor/src/github.com/petar/GoLLRB/LICENSE rename to vendor/github.com/petar/GoLLRB/LICENSE diff --git a/vendor/github.com/petar/GoLLRB/llrb/BUILD.bazel b/vendor/github.com/petar/GoLLRB/llrb/BUILD.bazel new file mode 100644 index 0000000000000..84363a926dac2 --- /dev/null +++ b/vendor/github.com/petar/GoLLRB/llrb/BUILD.bazel @@ -0,0 +1,13 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "avgvar.go", + "iterator.go", + "llrb.go", + "llrb-stats.go", + "util.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/petar/GoLLRB/llrb/avgvar.go b/vendor/github.com/petar/GoLLRB/llrb/avgvar.go similarity index 100% rename from _vendor/src/github.com/petar/GoLLRB/llrb/avgvar.go rename to vendor/github.com/petar/GoLLRB/llrb/avgvar.go diff --git a/_vendor/src/github.com/petar/GoLLRB/llrb/iterator.go b/vendor/github.com/petar/GoLLRB/llrb/iterator.go similarity index 100% rename from _vendor/src/github.com/petar/GoLLRB/llrb/iterator.go rename to vendor/github.com/petar/GoLLRB/llrb/iterator.go diff --git a/_vendor/src/github.com/petar/GoLLRB/llrb/llrb-stats.go b/vendor/github.com/petar/GoLLRB/llrb/llrb-stats.go similarity index 100% rename from _vendor/src/github.com/petar/GoLLRB/llrb/llrb-stats.go rename to vendor/github.com/petar/GoLLRB/llrb/llrb-stats.go diff --git a/_vendor/src/github.com/petar/GoLLRB/llrb/llrb.go b/vendor/github.com/petar/GoLLRB/llrb/llrb.go similarity index 100% rename from _vendor/src/github.com/petar/GoLLRB/llrb/llrb.go rename to vendor/github.com/petar/GoLLRB/llrb/llrb.go diff --git a/_vendor/src/github.com/petar/GoLLRB/llrb/util.go b/vendor/github.com/petar/GoLLRB/llrb/util.go similarity index 100% rename from _vendor/src/github.com/petar/GoLLRB/llrb/util.go rename to vendor/github.com/petar/GoLLRB/llrb/util.go diff --git a/vendor/github.com/pingcap/check/BUILD.bazel b/vendor/github.com/pingcap/check/BUILD.bazel new file mode 100644 index 0000000000000..9df356768ab35 --- /dev/null +++ b/vendor/github.com/pingcap/check/BUILD.bazel @@ -0,0 +1,16 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "benchmark.go", + "check.go", + "checkers.go", + "checkers2.go", + "compare.go", + "helpers.go", + "printer.go", + "run.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/pingcap/check/benchmark.go b/vendor/github.com/pingcap/check/benchmark.go similarity index 100% rename from _vendor/src/github.com/pingcap/check/benchmark.go rename to vendor/github.com/pingcap/check/benchmark.go diff --git a/_vendor/src/github.com/pingcap/check/check.go b/vendor/github.com/pingcap/check/check.go similarity index 100% rename from _vendor/src/github.com/pingcap/check/check.go rename to vendor/github.com/pingcap/check/check.go diff --git a/_vendor/src/github.com/pingcap/check/checkers.go b/vendor/github.com/pingcap/check/checkers.go similarity index 100% rename from _vendor/src/github.com/pingcap/check/checkers.go rename to vendor/github.com/pingcap/check/checkers.go diff --git a/_vendor/src/github.com/pingcap/check/checkers2.go b/vendor/github.com/pingcap/check/checkers2.go similarity index 100% rename from _vendor/src/github.com/pingcap/check/checkers2.go rename to vendor/github.com/pingcap/check/checkers2.go diff --git a/_vendor/src/github.com/pingcap/check/compare.go b/vendor/github.com/pingcap/check/compare.go similarity index 100% rename from _vendor/src/github.com/pingcap/check/compare.go rename to vendor/github.com/pingcap/check/compare.go diff --git a/_vendor/src/github.com/pingcap/check/helpers.go b/vendor/github.com/pingcap/check/helpers.go similarity index 100% rename from _vendor/src/github.com/pingcap/check/helpers.go rename to vendor/github.com/pingcap/check/helpers.go diff --git a/_vendor/src/github.com/pingcap/check/printer.go b/vendor/github.com/pingcap/check/printer.go similarity index 100% rename from _vendor/src/github.com/pingcap/check/printer.go rename to vendor/github.com/pingcap/check/printer.go diff --git a/_vendor/src/github.com/pingcap/check/run.go b/vendor/github.com/pingcap/check/run.go similarity index 100% rename from _vendor/src/github.com/pingcap/check/run.go rename to vendor/github.com/pingcap/check/run.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/LICENSE b/vendor/github.com/pingcap/goleveldb/LICENSE similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/LICENSE rename to vendor/github.com/pingcap/goleveldb/LICENSE diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/BUILD.bazel new file mode 100644 index 0000000000000..7f7d7312fb7b1 --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/BUILD.bazel @@ -0,0 +1,43 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "batch.go", + "comparer.go", + "db.go", + "db_compaction.go", + "db_iter.go", + "db_snapshot.go", + "db_state.go", + "db_transaction.go", + "db_util.go", + "db_write.go", + "doc.go", + "errors.go", + "filter.go", + "key.go", + "options.go", + "session.go", + "session_compaction.go", + "session_record.go", + "session_util.go", + "table.go", + "util.go", + "version.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/pingcap/goleveldb/leveldb/cache:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/comparer:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/errors:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/filter:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/iterator:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/journal:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/memdb:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/opt:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/storage:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/table:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/batch.go b/vendor/github.com/pingcap/goleveldb/leveldb/batch.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/batch.go rename to vendor/github.com/pingcap/goleveldb/leveldb/batch.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/cache/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/cache/BUILD.bazel new file mode 100644 index 0000000000000..e8221d863f1d5 --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/cache/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "cache.go", + "lru.go", + ], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library"], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/cache/cache.go b/vendor/github.com/pingcap/goleveldb/leveldb/cache/cache.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/cache/cache.go rename to vendor/github.com/pingcap/goleveldb/leveldb/cache/cache.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/cache/lru.go b/vendor/github.com/pingcap/goleveldb/leveldb/cache/lru.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/cache/lru.go rename to vendor/github.com/pingcap/goleveldb/leveldb/cache/lru.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/comparer.go b/vendor/github.com/pingcap/goleveldb/leveldb/comparer.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/comparer.go rename to vendor/github.com/pingcap/goleveldb/leveldb/comparer.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/comparer/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/comparer/BUILD.bazel new file mode 100644 index 0000000000000..74be6513670cb --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/comparer/BUILD.bazel @@ -0,0 +1,10 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "bytes_comparer.go", + "comparer.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/comparer/bytes_comparer.go b/vendor/github.com/pingcap/goleveldb/leveldb/comparer/bytes_comparer.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/comparer/bytes_comparer.go rename to vendor/github.com/pingcap/goleveldb/leveldb/comparer/bytes_comparer.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/comparer/comparer.go b/vendor/github.com/pingcap/goleveldb/leveldb/comparer/comparer.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/comparer/comparer.go rename to vendor/github.com/pingcap/goleveldb/leveldb/comparer/comparer.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/db.go b/vendor/github.com/pingcap/goleveldb/leveldb/db.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/db.go rename to vendor/github.com/pingcap/goleveldb/leveldb/db.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/db_compaction.go b/vendor/github.com/pingcap/goleveldb/leveldb/db_compaction.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/db_compaction.go rename to vendor/github.com/pingcap/goleveldb/leveldb/db_compaction.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/db_iter.go b/vendor/github.com/pingcap/goleveldb/leveldb/db_iter.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/db_iter.go rename to vendor/github.com/pingcap/goleveldb/leveldb/db_iter.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/db_snapshot.go b/vendor/github.com/pingcap/goleveldb/leveldb/db_snapshot.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/db_snapshot.go rename to vendor/github.com/pingcap/goleveldb/leveldb/db_snapshot.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/db_state.go b/vendor/github.com/pingcap/goleveldb/leveldb/db_state.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/db_state.go rename to vendor/github.com/pingcap/goleveldb/leveldb/db_state.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/db_transaction.go b/vendor/github.com/pingcap/goleveldb/leveldb/db_transaction.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/db_transaction.go rename to vendor/github.com/pingcap/goleveldb/leveldb/db_transaction.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/db_util.go b/vendor/github.com/pingcap/goleveldb/leveldb/db_util.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/db_util.go rename to vendor/github.com/pingcap/goleveldb/leveldb/db_util.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/db_write.go b/vendor/github.com/pingcap/goleveldb/leveldb/db_write.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/db_write.go rename to vendor/github.com/pingcap/goleveldb/leveldb/db_write.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/doc.go b/vendor/github.com/pingcap/goleveldb/leveldb/doc.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/doc.go rename to vendor/github.com/pingcap/goleveldb/leveldb/doc.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/errors.go b/vendor/github.com/pingcap/goleveldb/leveldb/errors.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/errors.go rename to vendor/github.com/pingcap/goleveldb/leveldb/errors.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/errors/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/errors/BUILD.bazel new file mode 100644 index 0000000000000..7bff923c879ea --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/errors/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["errors.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/pingcap/goleveldb/leveldb/storage:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/errors/errors.go b/vendor/github.com/pingcap/goleveldb/leveldb/errors/errors.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/errors/errors.go rename to vendor/github.com/pingcap/goleveldb/leveldb/errors/errors.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/filter.go b/vendor/github.com/pingcap/goleveldb/leveldb/filter.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/filter.go rename to vendor/github.com/pingcap/goleveldb/leveldb/filter.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/filter/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/filter/BUILD.bazel new file mode 100644 index 0000000000000..f6dc390866f52 --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/filter/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "bloom.go", + "filter.go", + ], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library"], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/filter/bloom.go b/vendor/github.com/pingcap/goleveldb/leveldb/filter/bloom.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/filter/bloom.go rename to vendor/github.com/pingcap/goleveldb/leveldb/filter/bloom.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/filter/filter.go b/vendor/github.com/pingcap/goleveldb/leveldb/filter/filter.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/filter/filter.go rename to vendor/github.com/pingcap/goleveldb/leveldb/filter/filter.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/iterator/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/iterator/BUILD.bazel new file mode 100644 index 0000000000000..e6429f32ee267 --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/iterator/BUILD.bazel @@ -0,0 +1,17 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "array_iter.go", + "indexed_iter.go", + "iter.go", + "merged_iter.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/pingcap/goleveldb/leveldb/comparer:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/errors:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/iterator/array_iter.go b/vendor/github.com/pingcap/goleveldb/leveldb/iterator/array_iter.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/iterator/array_iter.go rename to vendor/github.com/pingcap/goleveldb/leveldb/iterator/array_iter.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/iterator/indexed_iter.go b/vendor/github.com/pingcap/goleveldb/leveldb/iterator/indexed_iter.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/iterator/indexed_iter.go rename to vendor/github.com/pingcap/goleveldb/leveldb/iterator/indexed_iter.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/iterator/iter.go b/vendor/github.com/pingcap/goleveldb/leveldb/iterator/iter.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/iterator/iter.go rename to vendor/github.com/pingcap/goleveldb/leveldb/iterator/iter.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/iterator/merged_iter.go b/vendor/github.com/pingcap/goleveldb/leveldb/iterator/merged_iter.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/iterator/merged_iter.go rename to vendor/github.com/pingcap/goleveldb/leveldb/iterator/merged_iter.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/journal/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/journal/BUILD.bazel new file mode 100644 index 0000000000000..324ab97eb4be1 --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/journal/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["journal.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/pingcap/goleveldb/leveldb/errors:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/storage:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/journal/journal.go b/vendor/github.com/pingcap/goleveldb/leveldb/journal/journal.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/journal/journal.go rename to vendor/github.com/pingcap/goleveldb/leveldb/journal/journal.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/key.go b/vendor/github.com/pingcap/goleveldb/leveldb/key.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/key.go rename to vendor/github.com/pingcap/goleveldb/leveldb/key.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/memdb/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/memdb/BUILD.bazel new file mode 100644 index 0000000000000..307fbf20b2da8 --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/memdb/BUILD.bazel @@ -0,0 +1,13 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["memdb.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/pingcap/goleveldb/leveldb/comparer:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/errors:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/iterator:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/memdb/memdb.go b/vendor/github.com/pingcap/goleveldb/leveldb/memdb/memdb.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/memdb/memdb.go rename to vendor/github.com/pingcap/goleveldb/leveldb/memdb/memdb.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/opt/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/opt/BUILD.bazel new file mode 100644 index 0000000000000..59eed9def7169 --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/opt/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["options.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/pingcap/goleveldb/leveldb/cache:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/comparer:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/filter:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/opt/options.go b/vendor/github.com/pingcap/goleveldb/leveldb/opt/options.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/opt/options.go rename to vendor/github.com/pingcap/goleveldb/leveldb/opt/options.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/options.go b/vendor/github.com/pingcap/goleveldb/leveldb/options.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/options.go rename to vendor/github.com/pingcap/goleveldb/leveldb/options.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/session.go b/vendor/github.com/pingcap/goleveldb/leveldb/session.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/session.go rename to vendor/github.com/pingcap/goleveldb/leveldb/session.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/session_compaction.go b/vendor/github.com/pingcap/goleveldb/leveldb/session_compaction.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/session_compaction.go rename to vendor/github.com/pingcap/goleveldb/leveldb/session_compaction.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/session_record.go b/vendor/github.com/pingcap/goleveldb/leveldb/session_record.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/session_record.go rename to vendor/github.com/pingcap/goleveldb/leveldb/session_record.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/session_util.go b/vendor/github.com/pingcap/goleveldb/leveldb/session_util.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/session_util.go rename to vendor/github.com/pingcap/goleveldb/leveldb/session_util.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/storage/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/storage/BUILD.bazel new file mode 100644 index 0000000000000..908182961ea9b --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/storage/BUILD.bazel @@ -0,0 +1,23 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "file_storage.go", + "mem_storage.go", + "storage.go", + ] + select({ + "@io_bazel_rules_go//go/platform:darwin_amd64": [ + "file_storage_unix.go", + ], + "@io_bazel_rules_go//go/platform:linux_amd64": [ + "file_storage_unix.go", + ], + "@io_bazel_rules_go//go/platform:windows_amd64": [ + "file_storage_windows.go", + ], + "//conditions:default": [], + }), + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library"], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage.go b/vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage.go rename to vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_nacl.go b/vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_nacl.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_nacl.go rename to vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_nacl.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_plan9.go b/vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_plan9.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_plan9.go rename to vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_plan9.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_solaris.go b/vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_solaris.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_solaris.go rename to vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_solaris.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_unix.go b/vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_unix.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_unix.go rename to vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_unix.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_windows.go b/vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_windows.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/storage/file_storage_windows.go rename to vendor/github.com/pingcap/goleveldb/leveldb/storage/file_storage_windows.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/storage/mem_storage.go b/vendor/github.com/pingcap/goleveldb/leveldb/storage/mem_storage.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/storage/mem_storage.go rename to vendor/github.com/pingcap/goleveldb/leveldb/storage/mem_storage.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/storage/storage.go b/vendor/github.com/pingcap/goleveldb/leveldb/storage/storage.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/storage/storage.go rename to vendor/github.com/pingcap/goleveldb/leveldb/storage/storage.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/table.go b/vendor/github.com/pingcap/goleveldb/leveldb/table.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/table.go rename to vendor/github.com/pingcap/goleveldb/leveldb/table.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/table/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/table/BUILD.bazel new file mode 100644 index 0000000000000..743a59e41254a --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/table/BUILD.bazel @@ -0,0 +1,22 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "reader.go", + "table.go", + "writer.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/snappy:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/cache:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/comparer:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/errors:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/filter:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/iterator:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/opt:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/storage:go_default_library", + "//vendor/github.com/pingcap/goleveldb/leveldb/util:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/table/reader.go b/vendor/github.com/pingcap/goleveldb/leveldb/table/reader.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/table/reader.go rename to vendor/github.com/pingcap/goleveldb/leveldb/table/reader.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/table/table.go b/vendor/github.com/pingcap/goleveldb/leveldb/table/table.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/table/table.go rename to vendor/github.com/pingcap/goleveldb/leveldb/table/table.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/table/writer.go b/vendor/github.com/pingcap/goleveldb/leveldb/table/writer.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/table/writer.go rename to vendor/github.com/pingcap/goleveldb/leveldb/table/writer.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/util.go b/vendor/github.com/pingcap/goleveldb/leveldb/util.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/util.go rename to vendor/github.com/pingcap/goleveldb/leveldb/util.go diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/util/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/util/BUILD.bazel new file mode 100644 index 0000000000000..1f27166e5a1e1 --- /dev/null +++ b/vendor/github.com/pingcap/goleveldb/leveldb/util/BUILD.bazel @@ -0,0 +1,14 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "buffer.go", + "buffer_pool.go", + "crc32.go", + "hash.go", + "range.go", + "util.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/util/buffer.go b/vendor/github.com/pingcap/goleveldb/leveldb/util/buffer.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/util/buffer.go rename to vendor/github.com/pingcap/goleveldb/leveldb/util/buffer.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/util/buffer_pool.go b/vendor/github.com/pingcap/goleveldb/leveldb/util/buffer_pool.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/util/buffer_pool.go rename to vendor/github.com/pingcap/goleveldb/leveldb/util/buffer_pool.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/util/crc32.go b/vendor/github.com/pingcap/goleveldb/leveldb/util/crc32.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/util/crc32.go rename to vendor/github.com/pingcap/goleveldb/leveldb/util/crc32.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/util/hash.go b/vendor/github.com/pingcap/goleveldb/leveldb/util/hash.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/util/hash.go rename to vendor/github.com/pingcap/goleveldb/leveldb/util/hash.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/util/range.go b/vendor/github.com/pingcap/goleveldb/leveldb/util/range.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/util/range.go rename to vendor/github.com/pingcap/goleveldb/leveldb/util/range.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/util/util.go b/vendor/github.com/pingcap/goleveldb/leveldb/util/util.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/util/util.go rename to vendor/github.com/pingcap/goleveldb/leveldb/util/util.go diff --git a/_vendor/src/github.com/pingcap/goleveldb/leveldb/version.go b/vendor/github.com/pingcap/goleveldb/leveldb/version.go similarity index 100% rename from _vendor/src/github.com/pingcap/goleveldb/leveldb/version.go rename to vendor/github.com/pingcap/goleveldb/leveldb/version.go diff --git a/vendor/github.com/pingcap/kvproto/pkg/coprocessor/BUILD.bazel b/vendor/github.com/pingcap/kvproto/pkg/coprocessor/BUILD.bazel new file mode 100644 index 0000000000000..4a278f6832469 --- /dev/null +++ b/vendor/github.com/pingcap/kvproto/pkg/coprocessor/BUILD.bazel @@ -0,0 +1,13 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["coprocessor.pb.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/errorpb:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/kvrpcpb:go_default_library", + "//vendor/github.com/pingcap/tipb/sharedbytes:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/kvproto/pkg/coprocessor/coprocessor.pb.go b/vendor/github.com/pingcap/kvproto/pkg/coprocessor/coprocessor.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/kvproto/pkg/coprocessor/coprocessor.pb.go rename to vendor/github.com/pingcap/kvproto/pkg/coprocessor/coprocessor.pb.go diff --git a/vendor/github.com/pingcap/kvproto/pkg/eraftpb/BUILD.bazel b/vendor/github.com/pingcap/kvproto/pkg/eraftpb/BUILD.bazel new file mode 100644 index 0000000000000..13741efbcf906 --- /dev/null +++ b/vendor/github.com/pingcap/kvproto/pkg/eraftpb/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["eraftpb.pb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/pingcap/kvproto/pkg/eraftpb/eraftpb.pb.go b/vendor/github.com/pingcap/kvproto/pkg/eraftpb/eraftpb.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/kvproto/pkg/eraftpb/eraftpb.pb.go rename to vendor/github.com/pingcap/kvproto/pkg/eraftpb/eraftpb.pb.go diff --git a/vendor/github.com/pingcap/kvproto/pkg/errorpb/BUILD.bazel b/vendor/github.com/pingcap/kvproto/pkg/errorpb/BUILD.bazel new file mode 100644 index 0000000000000..e79ea0b4b9674 --- /dev/null +++ b/vendor/github.com/pingcap/kvproto/pkg/errorpb/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["errorpb.pb.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/metapb:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/kvproto/pkg/errorpb/errorpb.pb.go b/vendor/github.com/pingcap/kvproto/pkg/errorpb/errorpb.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/kvproto/pkg/errorpb/errorpb.pb.go rename to vendor/github.com/pingcap/kvproto/pkg/errorpb/errorpb.pb.go diff --git a/vendor/github.com/pingcap/kvproto/pkg/kvrpcpb/BUILD.bazel b/vendor/github.com/pingcap/kvproto/pkg/kvrpcpb/BUILD.bazel new file mode 100644 index 0000000000000..c990671202f73 --- /dev/null +++ b/vendor/github.com/pingcap/kvproto/pkg/kvrpcpb/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["kvrpcpb.pb.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/errorpb:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/metapb:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/kvproto/pkg/kvrpcpb/kvrpcpb.pb.go b/vendor/github.com/pingcap/kvproto/pkg/kvrpcpb/kvrpcpb.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/kvproto/pkg/kvrpcpb/kvrpcpb.pb.go rename to vendor/github.com/pingcap/kvproto/pkg/kvrpcpb/kvrpcpb.pb.go diff --git a/vendor/github.com/pingcap/kvproto/pkg/metapb/BUILD.bazel b/vendor/github.com/pingcap/kvproto/pkg/metapb/BUILD.bazel new file mode 100644 index 0000000000000..0ca2c56f7bb50 --- /dev/null +++ b/vendor/github.com/pingcap/kvproto/pkg/metapb/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["metapb.pb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/pingcap/kvproto/pkg/metapb/metapb.pb.go b/vendor/github.com/pingcap/kvproto/pkg/metapb/metapb.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/kvproto/pkg/metapb/metapb.pb.go rename to vendor/github.com/pingcap/kvproto/pkg/metapb/metapb.pb.go diff --git a/vendor/github.com/pingcap/kvproto/pkg/pdpb/BUILD.bazel b/vendor/github.com/pingcap/kvproto/pkg/pdpb/BUILD.bazel new file mode 100644 index 0000000000000..07f086b36b8e9 --- /dev/null +++ b/vendor/github.com/pingcap/kvproto/pkg/pdpb/BUILD.bazel @@ -0,0 +1,13 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["pdpb.pb.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/metapb:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/kvproto/pkg/pdpb/pdpb.pb.go b/vendor/github.com/pingcap/kvproto/pkg/pdpb/pdpb.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/kvproto/pkg/pdpb/pdpb.pb.go rename to vendor/github.com/pingcap/kvproto/pkg/pdpb/pdpb.pb.go diff --git a/vendor/github.com/pingcap/kvproto/pkg/raft_serverpb/BUILD.bazel b/vendor/github.com/pingcap/kvproto/pkg/raft_serverpb/BUILD.bazel new file mode 100644 index 0000000000000..ff75a5cfbcfa4 --- /dev/null +++ b/vendor/github.com/pingcap/kvproto/pkg/raft_serverpb/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["raft_serverpb.pb.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/eraftpb:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/metapb:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/kvproto/pkg/raft_serverpb/raft_serverpb.pb.go b/vendor/github.com/pingcap/kvproto/pkg/raft_serverpb/raft_serverpb.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/kvproto/pkg/raft_serverpb/raft_serverpb.pb.go rename to vendor/github.com/pingcap/kvproto/pkg/raft_serverpb/raft_serverpb.pb.go diff --git a/vendor/github.com/pingcap/kvproto/pkg/tikvpb/BUILD.bazel b/vendor/github.com/pingcap/kvproto/pkg/tikvpb/BUILD.bazel new file mode 100644 index 0000000000000..41f8e13998c17 --- /dev/null +++ b/vendor/github.com/pingcap/kvproto/pkg/tikvpb/BUILD.bazel @@ -0,0 +1,15 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["tikvpb.pb.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/coprocessor:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/kvrpcpb:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/raft_serverpb:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/kvproto/pkg/tikvpb/tikvpb.pb.go b/vendor/github.com/pingcap/kvproto/pkg/tikvpb/tikvpb.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/kvproto/pkg/tikvpb/tikvpb.pb.go rename to vendor/github.com/pingcap/kvproto/pkg/tikvpb/tikvpb.pb.go diff --git a/_vendor/src/github.com/pingcap/pd/LICENSE b/vendor/github.com/pingcap/pd/LICENSE similarity index 100% rename from _vendor/src/github.com/pingcap/pd/LICENSE rename to vendor/github.com/pingcap/pd/LICENSE diff --git a/vendor/github.com/pingcap/pd/pd-client/BUILD.bazel b/vendor/github.com/pingcap/pd/pd-client/BUILD.bazel new file mode 100644 index 0000000000000..78dd4bdab5ffd --- /dev/null +++ b/vendor/github.com/pingcap/pd/pd-client/BUILD.bazel @@ -0,0 +1,19 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "client.go", + "metrics.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/Sirupsen/logrus:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/metapb:go_default_library", + "//vendor/github.com/pingcap/kvproto/pkg/pdpb:go_default_library", + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/pd/pd-client/client.go b/vendor/github.com/pingcap/pd/pd-client/client.go similarity index 100% rename from _vendor/src/github.com/pingcap/pd/pd-client/client.go rename to vendor/github.com/pingcap/pd/pd-client/client.go diff --git a/_vendor/src/github.com/pingcap/pd/pd-client/metrics.go b/vendor/github.com/pingcap/pd/pd-client/metrics.go similarity index 100% rename from _vendor/src/github.com/pingcap/pd/pd-client/metrics.go rename to vendor/github.com/pingcap/pd/pd-client/metrics.go diff --git a/_vendor/src/github.com/pingcap/tipb/LICENSE b/vendor/github.com/pingcap/tipb/LICENSE similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/LICENSE rename to vendor/github.com/pingcap/tipb/LICENSE diff --git a/vendor/github.com/pingcap/tipb/go-binlog/BUILD.bazel b/vendor/github.com/pingcap/tipb/go-binlog/BUILD.bazel new file mode 100644 index 0000000000000..6565c98050ceb --- /dev/null +++ b/vendor/github.com/pingcap/tipb/go-binlog/BUILD.bazel @@ -0,0 +1,16 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "binlog.pb.go", + "cistern.pb.go", + "pump.pb.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/tipb/go-binlog/binlog.pb.go b/vendor/github.com/pingcap/tipb/go-binlog/binlog.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/go-binlog/binlog.pb.go rename to vendor/github.com/pingcap/tipb/go-binlog/binlog.pb.go diff --git a/_vendor/src/github.com/pingcap/tipb/go-binlog/cistern.pb.go b/vendor/github.com/pingcap/tipb/go-binlog/cistern.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/go-binlog/cistern.pb.go rename to vendor/github.com/pingcap/tipb/go-binlog/cistern.pb.go diff --git a/_vendor/src/github.com/pingcap/tipb/go-binlog/pump.pb.go b/vendor/github.com/pingcap/tipb/go-binlog/pump.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/go-binlog/pump.pb.go rename to vendor/github.com/pingcap/tipb/go-binlog/pump.pb.go diff --git a/vendor/github.com/pingcap/tipb/go-tipb/BUILD.bazel b/vendor/github.com/pingcap/tipb/go-tipb/BUILD.bazel new file mode 100644 index 0000000000000..41b152984ad2a --- /dev/null +++ b/vendor/github.com/pingcap/tipb/go-tipb/BUILD.bazel @@ -0,0 +1,16 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "executor.pb.go", + "expression.pb.go", + "schema.pb.go", + "select.pb.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/pingcap/tipb/sharedbytes:go_default_library", + ], +) diff --git a/_vendor/src/github.com/pingcap/tipb/go-tipb/executor.pb.go b/vendor/github.com/pingcap/tipb/go-tipb/executor.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/go-tipb/executor.pb.go rename to vendor/github.com/pingcap/tipb/go-tipb/executor.pb.go diff --git a/_vendor/src/github.com/pingcap/tipb/go-tipb/expression.pb.go b/vendor/github.com/pingcap/tipb/go-tipb/expression.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/go-tipb/expression.pb.go rename to vendor/github.com/pingcap/tipb/go-tipb/expression.pb.go diff --git a/_vendor/src/github.com/pingcap/tipb/go-tipb/schema.pb.go b/vendor/github.com/pingcap/tipb/go-tipb/schema.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/go-tipb/schema.pb.go rename to vendor/github.com/pingcap/tipb/go-tipb/schema.pb.go diff --git a/_vendor/src/github.com/pingcap/tipb/go-tipb/select.pb.go b/vendor/github.com/pingcap/tipb/go-tipb/select.pb.go similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/go-tipb/select.pb.go rename to vendor/github.com/pingcap/tipb/go-tipb/select.pb.go diff --git a/vendor/github.com/pingcap/tipb/sharedbytes/BUILD.bazel b/vendor/github.com/pingcap/tipb/sharedbytes/BUILD.bazel new file mode 100644 index 0000000000000..77162a69168c2 --- /dev/null +++ b/vendor/github.com/pingcap/tipb/sharedbytes/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["sharedbytes.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/pingcap/tipb/sharedbytes/sharedbytes.go b/vendor/github.com/pingcap/tipb/sharedbytes/sharedbytes.go similarity index 100% rename from _vendor/src/github.com/pingcap/tipb/sharedbytes/sharedbytes.go rename to vendor/github.com/pingcap/tipb/sharedbytes/sharedbytes.go diff --git a/_vendor/src/github.com/prometheus/client_golang/LICENSE b/vendor/github.com/prometheus/client_golang/LICENSE similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/LICENSE rename to vendor/github.com/prometheus/client_golang/LICENSE diff --git a/_vendor/src/github.com/prometheus/client_golang/NOTICE b/vendor/github.com/prometheus/client_golang/NOTICE similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/NOTICE rename to vendor/github.com/prometheus/client_golang/NOTICE diff --git a/vendor/github.com/prometheus/client_golang/prometheus/BUILD.bazel b/vendor/github.com/prometheus/client_golang/prometheus/BUILD.bazel new file mode 100644 index 0000000000000..23fac05608b2c --- /dev/null +++ b/vendor/github.com/prometheus/client_golang/prometheus/BUILD.bazel @@ -0,0 +1,33 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "collector.go", + "counter.go", + "desc.go", + "doc.go", + "expvar_collector.go", + "fnv.go", + "gauge.go", + "go_collector.go", + "histogram.go", + "http.go", + "metric.go", + "process_collector.go", + "registry.go", + "summary.go", + "untyped.go", + "value.go", + "vec.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/beorn7/perks/quantile:go_default_library", + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/prometheus/client_model/go:go_default_library", + "//vendor/github.com/prometheus/common/expfmt:go_default_library", + "//vendor/github.com/prometheus/common/model:go_default_library", + "//vendor/github.com/prometheus/procfs:go_default_library", + ], +) diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/collector.go b/vendor/github.com/prometheus/client_golang/prometheus/collector.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/collector.go rename to vendor/github.com/prometheus/client_golang/prometheus/collector.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/counter.go b/vendor/github.com/prometheus/client_golang/prometheus/counter.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/counter.go rename to vendor/github.com/prometheus/client_golang/prometheus/counter.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/desc.go b/vendor/github.com/prometheus/client_golang/prometheus/desc.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/desc.go rename to vendor/github.com/prometheus/client_golang/prometheus/desc.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/doc.go b/vendor/github.com/prometheus/client_golang/prometheus/doc.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/doc.go rename to vendor/github.com/prometheus/client_golang/prometheus/doc.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/expvar_collector.go b/vendor/github.com/prometheus/client_golang/prometheus/expvar_collector.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/expvar_collector.go rename to vendor/github.com/prometheus/client_golang/prometheus/expvar_collector.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/fnv.go b/vendor/github.com/prometheus/client_golang/prometheus/fnv.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/fnv.go rename to vendor/github.com/prometheus/client_golang/prometheus/fnv.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/gauge.go b/vendor/github.com/prometheus/client_golang/prometheus/gauge.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/gauge.go rename to vendor/github.com/prometheus/client_golang/prometheus/gauge.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/go_collector.go b/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/go_collector.go rename to vendor/github.com/prometheus/client_golang/prometheus/go_collector.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/histogram.go b/vendor/github.com/prometheus/client_golang/prometheus/histogram.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/histogram.go rename to vendor/github.com/prometheus/client_golang/prometheus/histogram.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/http.go b/vendor/github.com/prometheus/client_golang/prometheus/http.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/http.go rename to vendor/github.com/prometheus/client_golang/prometheus/http.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/metric.go b/vendor/github.com/prometheus/client_golang/prometheus/metric.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/metric.go rename to vendor/github.com/prometheus/client_golang/prometheus/metric.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/process_collector.go b/vendor/github.com/prometheus/client_golang/prometheus/process_collector.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/process_collector.go rename to vendor/github.com/prometheus/client_golang/prometheus/process_collector.go diff --git a/vendor/github.com/prometheus/client_golang/prometheus/push/BUILD.bazel b/vendor/github.com/prometheus/client_golang/prometheus/push/BUILD.bazel new file mode 100644 index 0000000000000..f4f7d0cf98d84 --- /dev/null +++ b/vendor/github.com/prometheus/client_golang/prometheus/push/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["push.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/github.com/prometheus/common/expfmt:go_default_library", + "//vendor/github.com/prometheus/common/model:go_default_library", + ], +) diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/push/push.go b/vendor/github.com/prometheus/client_golang/prometheus/push/push.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/push/push.go rename to vendor/github.com/prometheus/client_golang/prometheus/push/push.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/registry.go b/vendor/github.com/prometheus/client_golang/prometheus/registry.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/registry.go rename to vendor/github.com/prometheus/client_golang/prometheus/registry.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/summary.go b/vendor/github.com/prometheus/client_golang/prometheus/summary.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/summary.go rename to vendor/github.com/prometheus/client_golang/prometheus/summary.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/untyped.go b/vendor/github.com/prometheus/client_golang/prometheus/untyped.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/untyped.go rename to vendor/github.com/prometheus/client_golang/prometheus/untyped.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/value.go b/vendor/github.com/prometheus/client_golang/prometheus/value.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/value.go rename to vendor/github.com/prometheus/client_golang/prometheus/value.go diff --git a/_vendor/src/github.com/prometheus/client_golang/prometheus/vec.go b/vendor/github.com/prometheus/client_golang/prometheus/vec.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_golang/prometheus/vec.go rename to vendor/github.com/prometheus/client_golang/prometheus/vec.go diff --git a/_vendor/src/github.com/prometheus/client_model/LICENSE b/vendor/github.com/prometheus/client_model/LICENSE similarity index 100% rename from _vendor/src/github.com/prometheus/client_model/LICENSE rename to vendor/github.com/prometheus/client_model/LICENSE diff --git a/_vendor/src/github.com/prometheus/client_model/NOTICE b/vendor/github.com/prometheus/client_model/NOTICE similarity index 100% rename from _vendor/src/github.com/prometheus/client_model/NOTICE rename to vendor/github.com/prometheus/client_model/NOTICE diff --git a/vendor/github.com/prometheus/client_model/go/BUILD.bazel b/vendor/github.com/prometheus/client_model/go/BUILD.bazel new file mode 100644 index 0000000000000..22144d0c97e87 --- /dev/null +++ b/vendor/github.com/prometheus/client_model/go/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["metrics.pb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/github.com/prometheus/client_model/go/metrics.pb.go b/vendor/github.com/prometheus/client_model/go/metrics.pb.go similarity index 100% rename from _vendor/src/github.com/prometheus/client_model/go/metrics.pb.go rename to vendor/github.com/prometheus/client_model/go/metrics.pb.go diff --git a/_vendor/src/github.com/prometheus/common/LICENSE b/vendor/github.com/prometheus/common/LICENSE similarity index 100% rename from _vendor/src/github.com/prometheus/common/LICENSE rename to vendor/github.com/prometheus/common/LICENSE diff --git a/_vendor/src/github.com/prometheus/common/NOTICE b/vendor/github.com/prometheus/common/NOTICE similarity index 100% rename from _vendor/src/github.com/prometheus/common/NOTICE rename to vendor/github.com/prometheus/common/NOTICE diff --git a/vendor/github.com/prometheus/common/expfmt/BUILD.bazel b/vendor/github.com/prometheus/common/expfmt/BUILD.bazel new file mode 100644 index 0000000000000..2f52562c63f59 --- /dev/null +++ b/vendor/github.com/prometheus/common/expfmt/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "decode.go", + "encode.go", + "expfmt.go", + "text_create.go", + "text_parse.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/matttproud/golang_protobuf_extensions/pbutil:go_default_library", + "//vendor/github.com/prometheus/client_model/go:go_default_library", + "//vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg:go_default_library", + "//vendor/github.com/prometheus/common/model:go_default_library", + ], +) diff --git a/_vendor/src/github.com/prometheus/common/expfmt/decode.go b/vendor/github.com/prometheus/common/expfmt/decode.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/expfmt/decode.go rename to vendor/github.com/prometheus/common/expfmt/decode.go diff --git a/_vendor/src/github.com/prometheus/common/expfmt/encode.go b/vendor/github.com/prometheus/common/expfmt/encode.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/expfmt/encode.go rename to vendor/github.com/prometheus/common/expfmt/encode.go diff --git a/_vendor/src/github.com/prometheus/common/expfmt/expfmt.go b/vendor/github.com/prometheus/common/expfmt/expfmt.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/expfmt/expfmt.go rename to vendor/github.com/prometheus/common/expfmt/expfmt.go diff --git a/_vendor/src/github.com/prometheus/common/expfmt/fuzz.go b/vendor/github.com/prometheus/common/expfmt/fuzz.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/expfmt/fuzz.go rename to vendor/github.com/prometheus/common/expfmt/fuzz.go diff --git a/_vendor/src/github.com/prometheus/common/expfmt/text_create.go b/vendor/github.com/prometheus/common/expfmt/text_create.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/expfmt/text_create.go rename to vendor/github.com/prometheus/common/expfmt/text_create.go diff --git a/_vendor/src/github.com/prometheus/common/expfmt/text_parse.go b/vendor/github.com/prometheus/common/expfmt/text_parse.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/expfmt/text_parse.go rename to vendor/github.com/prometheus/common/expfmt/text_parse.go diff --git a/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD.bazel b/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD.bazel new file mode 100644 index 0000000000000..5e17f8205efd1 --- /dev/null +++ b/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["autoneg.go"], + visibility = ["//vendor/github.com/prometheus/common:__subpackages__"], +) diff --git a/_vendor/src/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go b/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go rename to vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg/autoneg.go diff --git a/vendor/github.com/prometheus/common/model/BUILD.bazel b/vendor/github.com/prometheus/common/model/BUILD.bazel new file mode 100644 index 0000000000000..c611c31b8de8c --- /dev/null +++ b/vendor/github.com/prometheus/common/model/BUILD.bazel @@ -0,0 +1,19 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "alert.go", + "fingerprinting.go", + "fnv.go", + "labels.go", + "labelset.go", + "metric.go", + "model.go", + "signature.go", + "silence.go", + "time.go", + "value.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/prometheus/common/model/alert.go b/vendor/github.com/prometheus/common/model/alert.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/alert.go rename to vendor/github.com/prometheus/common/model/alert.go diff --git a/_vendor/src/github.com/prometheus/common/model/fingerprinting.go b/vendor/github.com/prometheus/common/model/fingerprinting.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/fingerprinting.go rename to vendor/github.com/prometheus/common/model/fingerprinting.go diff --git a/_vendor/src/github.com/prometheus/common/model/fnv.go b/vendor/github.com/prometheus/common/model/fnv.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/fnv.go rename to vendor/github.com/prometheus/common/model/fnv.go diff --git a/_vendor/src/github.com/prometheus/common/model/labels.go b/vendor/github.com/prometheus/common/model/labels.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/labels.go rename to vendor/github.com/prometheus/common/model/labels.go diff --git a/_vendor/src/github.com/prometheus/common/model/labelset.go b/vendor/github.com/prometheus/common/model/labelset.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/labelset.go rename to vendor/github.com/prometheus/common/model/labelset.go diff --git a/_vendor/src/github.com/prometheus/common/model/metric.go b/vendor/github.com/prometheus/common/model/metric.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/metric.go rename to vendor/github.com/prometheus/common/model/metric.go diff --git a/_vendor/src/github.com/prometheus/common/model/model.go b/vendor/github.com/prometheus/common/model/model.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/model.go rename to vendor/github.com/prometheus/common/model/model.go diff --git a/_vendor/src/github.com/prometheus/common/model/signature.go b/vendor/github.com/prometheus/common/model/signature.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/signature.go rename to vendor/github.com/prometheus/common/model/signature.go diff --git a/_vendor/src/github.com/prometheus/common/model/silence.go b/vendor/github.com/prometheus/common/model/silence.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/silence.go rename to vendor/github.com/prometheus/common/model/silence.go diff --git a/_vendor/src/github.com/prometheus/common/model/time.go b/vendor/github.com/prometheus/common/model/time.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/time.go rename to vendor/github.com/prometheus/common/model/time.go diff --git a/_vendor/src/github.com/prometheus/common/model/value.go b/vendor/github.com/prometheus/common/model/value.go similarity index 100% rename from _vendor/src/github.com/prometheus/common/model/value.go rename to vendor/github.com/prometheus/common/model/value.go diff --git a/vendor/github.com/prometheus/procfs/BUILD.bazel b/vendor/github.com/prometheus/procfs/BUILD.bazel new file mode 100644 index 0000000000000..8072bc113c0cb --- /dev/null +++ b/vendor/github.com/prometheus/procfs/BUILD.bazel @@ -0,0 +1,17 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "doc.go", + "fs.go", + "ipvs.go", + "mdstat.go", + "proc.go", + "proc_io.go", + "proc_limits.go", + "proc_stat.go", + "stat.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/prometheus/procfs/LICENSE b/vendor/github.com/prometheus/procfs/LICENSE similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/LICENSE rename to vendor/github.com/prometheus/procfs/LICENSE diff --git a/_vendor/src/github.com/prometheus/procfs/NOTICE b/vendor/github.com/prometheus/procfs/NOTICE similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/NOTICE rename to vendor/github.com/prometheus/procfs/NOTICE diff --git a/_vendor/src/github.com/prometheus/procfs/doc.go b/vendor/github.com/prometheus/procfs/doc.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/doc.go rename to vendor/github.com/prometheus/procfs/doc.go diff --git a/_vendor/src/github.com/prometheus/procfs/fs.go b/vendor/github.com/prometheus/procfs/fs.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/fs.go rename to vendor/github.com/prometheus/procfs/fs.go diff --git a/_vendor/src/github.com/prometheus/procfs/ipvs.go b/vendor/github.com/prometheus/procfs/ipvs.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/ipvs.go rename to vendor/github.com/prometheus/procfs/ipvs.go diff --git a/_vendor/src/github.com/prometheus/procfs/mdstat.go b/vendor/github.com/prometheus/procfs/mdstat.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/mdstat.go rename to vendor/github.com/prometheus/procfs/mdstat.go diff --git a/_vendor/src/github.com/prometheus/procfs/proc.go b/vendor/github.com/prometheus/procfs/proc.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/proc.go rename to vendor/github.com/prometheus/procfs/proc.go diff --git a/_vendor/src/github.com/prometheus/procfs/proc_io.go b/vendor/github.com/prometheus/procfs/proc_io.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/proc_io.go rename to vendor/github.com/prometheus/procfs/proc_io.go diff --git a/_vendor/src/github.com/prometheus/procfs/proc_limits.go b/vendor/github.com/prometheus/procfs/proc_limits.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/proc_limits.go rename to vendor/github.com/prometheus/procfs/proc_limits.go diff --git a/_vendor/src/github.com/prometheus/procfs/proc_stat.go b/vendor/github.com/prometheus/procfs/proc_stat.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/proc_stat.go rename to vendor/github.com/prometheus/procfs/proc_stat.go diff --git a/_vendor/src/github.com/prometheus/procfs/stat.go b/vendor/github.com/prometheus/procfs/stat.go similarity index 100% rename from _vendor/src/github.com/prometheus/procfs/stat.go rename to vendor/github.com/prometheus/procfs/stat.go diff --git a/vendor/github.com/twinj/uuid/BUILD.bazel b/vendor/github.com/twinj/uuid/BUILD.bazel new file mode 100644 index 0000000000000..a518c4b7817c9 --- /dev/null +++ b/vendor/github.com/twinj/uuid/BUILD.bazel @@ -0,0 +1,15 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "array.go", + "rfc4122.go", + "saver.go", + "state.go", + "struct.go", + "timestamp.go", + "uuids.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/github.com/twinj/uuid/LICENSE b/vendor/github.com/twinj/uuid/LICENSE similarity index 100% rename from _vendor/src/github.com/twinj/uuid/LICENSE rename to vendor/github.com/twinj/uuid/LICENSE diff --git a/_vendor/src/github.com/twinj/uuid/array.go b/vendor/github.com/twinj/uuid/array.go similarity index 100% rename from _vendor/src/github.com/twinj/uuid/array.go rename to vendor/github.com/twinj/uuid/array.go diff --git a/_vendor/src/github.com/twinj/uuid/rfc4122.go b/vendor/github.com/twinj/uuid/rfc4122.go similarity index 100% rename from _vendor/src/github.com/twinj/uuid/rfc4122.go rename to vendor/github.com/twinj/uuid/rfc4122.go diff --git a/_vendor/src/github.com/twinj/uuid/saver.go b/vendor/github.com/twinj/uuid/saver.go similarity index 100% rename from _vendor/src/github.com/twinj/uuid/saver.go rename to vendor/github.com/twinj/uuid/saver.go diff --git a/_vendor/src/github.com/twinj/uuid/state.go b/vendor/github.com/twinj/uuid/state.go similarity index 100% rename from _vendor/src/github.com/twinj/uuid/state.go rename to vendor/github.com/twinj/uuid/state.go diff --git a/_vendor/src/github.com/twinj/uuid/struct.go b/vendor/github.com/twinj/uuid/struct.go similarity index 100% rename from _vendor/src/github.com/twinj/uuid/struct.go rename to vendor/github.com/twinj/uuid/struct.go diff --git a/_vendor/src/github.com/twinj/uuid/timestamp.go b/vendor/github.com/twinj/uuid/timestamp.go similarity index 100% rename from _vendor/src/github.com/twinj/uuid/timestamp.go rename to vendor/github.com/twinj/uuid/timestamp.go diff --git a/_vendor/src/github.com/twinj/uuid/uuids.go b/vendor/github.com/twinj/uuid/uuids.go similarity index 100% rename from _vendor/src/github.com/twinj/uuid/uuids.go rename to vendor/github.com/twinj/uuid/uuids.go diff --git a/_vendor/src/golang.org/x/net/LICENSE b/vendor/golang.org/x/net/LICENSE similarity index 100% rename from _vendor/src/golang.org/x/net/LICENSE rename to vendor/golang.org/x/net/LICENSE diff --git a/_vendor/src/golang.org/x/net/PATENTS b/vendor/golang.org/x/net/PATENTS similarity index 100% rename from _vendor/src/golang.org/x/net/PATENTS rename to vendor/golang.org/x/net/PATENTS diff --git a/vendor/golang.org/x/net/context/BUILD.bazel b/vendor/golang.org/x/net/context/BUILD.bazel new file mode 100644 index 0000000000000..1db0e28de3483 --- /dev/null +++ b/vendor/golang.org/x/net/context/BUILD.bazel @@ -0,0 +1,10 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "context.go", + "go17.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/golang.org/x/net/context/context.go b/vendor/golang.org/x/net/context/context.go similarity index 100% rename from _vendor/src/golang.org/x/net/context/context.go rename to vendor/golang.org/x/net/context/context.go diff --git a/_vendor/src/golang.org/x/net/context/go17.go b/vendor/golang.org/x/net/context/go17.go similarity index 100% rename from _vendor/src/golang.org/x/net/context/go17.go rename to vendor/golang.org/x/net/context/go17.go diff --git a/_vendor/src/golang.org/x/net/context/pre_go17.go b/vendor/golang.org/x/net/context/pre_go17.go similarity index 100% rename from _vendor/src/golang.org/x/net/context/pre_go17.go rename to vendor/golang.org/x/net/context/pre_go17.go diff --git a/vendor/golang.org/x/net/http2/BUILD.bazel b/vendor/golang.org/x/net/http2/BUILD.bazel new file mode 100644 index 0000000000000..414451c3ea903 --- /dev/null +++ b/vendor/golang.org/x/net/http2/BUILD.bazel @@ -0,0 +1,32 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "client_conn_pool.go", + "configure_transport.go", + "databuffer.go", + "errors.go", + "flow.go", + "frame.go", + "go16.go", + "go17.go", + "go18.go", + "gotrack.go", + "headermap.go", + "http2.go", + "pipe.go", + "server.go", + "transport.go", + "write.go", + "writesched.go", + "writesched_priority.go", + "writesched_random.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/net/http2/hpack:go_default_library", + "//vendor/golang.org/x/net/idna:go_default_library", + "//vendor/golang.org/x/net/lex/httplex:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/net/http2/client_conn_pool.go b/vendor/golang.org/x/net/http2/client_conn_pool.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/client_conn_pool.go rename to vendor/golang.org/x/net/http2/client_conn_pool.go diff --git a/_vendor/src/golang.org/x/net/http2/configure_transport.go b/vendor/golang.org/x/net/http2/configure_transport.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/configure_transport.go rename to vendor/golang.org/x/net/http2/configure_transport.go diff --git a/_vendor/src/golang.org/x/net/http2/databuffer.go b/vendor/golang.org/x/net/http2/databuffer.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/databuffer.go rename to vendor/golang.org/x/net/http2/databuffer.go diff --git a/_vendor/src/golang.org/x/net/http2/errors.go b/vendor/golang.org/x/net/http2/errors.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/errors.go rename to vendor/golang.org/x/net/http2/errors.go diff --git a/_vendor/src/golang.org/x/net/http2/flow.go b/vendor/golang.org/x/net/http2/flow.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/flow.go rename to vendor/golang.org/x/net/http2/flow.go diff --git a/_vendor/src/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/frame.go rename to vendor/golang.org/x/net/http2/frame.go diff --git a/_vendor/src/golang.org/x/net/http2/go16.go b/vendor/golang.org/x/net/http2/go16.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/go16.go rename to vendor/golang.org/x/net/http2/go16.go diff --git a/_vendor/src/golang.org/x/net/http2/go17.go b/vendor/golang.org/x/net/http2/go17.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/go17.go rename to vendor/golang.org/x/net/http2/go17.go diff --git a/_vendor/src/golang.org/x/net/http2/go17_not18.go b/vendor/golang.org/x/net/http2/go17_not18.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/go17_not18.go rename to vendor/golang.org/x/net/http2/go17_not18.go diff --git a/_vendor/src/golang.org/x/net/http2/go18.go b/vendor/golang.org/x/net/http2/go18.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/go18.go rename to vendor/golang.org/x/net/http2/go18.go diff --git a/_vendor/src/golang.org/x/net/http2/gotrack.go b/vendor/golang.org/x/net/http2/gotrack.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/gotrack.go rename to vendor/golang.org/x/net/http2/gotrack.go diff --git a/_vendor/src/golang.org/x/net/http2/headermap.go b/vendor/golang.org/x/net/http2/headermap.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/headermap.go rename to vendor/golang.org/x/net/http2/headermap.go diff --git a/vendor/golang.org/x/net/http2/hpack/BUILD.bazel b/vendor/golang.org/x/net/http2/hpack/BUILD.bazel new file mode 100644 index 0000000000000..0be6547b2f125 --- /dev/null +++ b/vendor/golang.org/x/net/http2/hpack/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "encode.go", + "hpack.go", + "huffman.go", + "tables.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/golang.org/x/net/http2/hpack/encode.go b/vendor/golang.org/x/net/http2/hpack/encode.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/hpack/encode.go rename to vendor/golang.org/x/net/http2/hpack/encode.go diff --git a/_vendor/src/golang.org/x/net/http2/hpack/hpack.go b/vendor/golang.org/x/net/http2/hpack/hpack.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/hpack/hpack.go rename to vendor/golang.org/x/net/http2/hpack/hpack.go diff --git a/_vendor/src/golang.org/x/net/http2/hpack/huffman.go b/vendor/golang.org/x/net/http2/hpack/huffman.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/hpack/huffman.go rename to vendor/golang.org/x/net/http2/hpack/huffman.go diff --git a/_vendor/src/golang.org/x/net/http2/hpack/tables.go b/vendor/golang.org/x/net/http2/hpack/tables.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/hpack/tables.go rename to vendor/golang.org/x/net/http2/hpack/tables.go diff --git a/_vendor/src/golang.org/x/net/http2/http2.go b/vendor/golang.org/x/net/http2/http2.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/http2.go rename to vendor/golang.org/x/net/http2/http2.go diff --git a/_vendor/src/golang.org/x/net/http2/not_go16.go b/vendor/golang.org/x/net/http2/not_go16.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/not_go16.go rename to vendor/golang.org/x/net/http2/not_go16.go diff --git a/_vendor/src/golang.org/x/net/http2/not_go17.go b/vendor/golang.org/x/net/http2/not_go17.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/not_go17.go rename to vendor/golang.org/x/net/http2/not_go17.go diff --git a/_vendor/src/golang.org/x/net/http2/not_go18.go b/vendor/golang.org/x/net/http2/not_go18.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/not_go18.go rename to vendor/golang.org/x/net/http2/not_go18.go diff --git a/_vendor/src/golang.org/x/net/http2/pipe.go b/vendor/golang.org/x/net/http2/pipe.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/pipe.go rename to vendor/golang.org/x/net/http2/pipe.go diff --git a/_vendor/src/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/server.go rename to vendor/golang.org/x/net/http2/server.go diff --git a/_vendor/src/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/transport.go rename to vendor/golang.org/x/net/http2/transport.go diff --git a/_vendor/src/golang.org/x/net/http2/write.go b/vendor/golang.org/x/net/http2/write.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/write.go rename to vendor/golang.org/x/net/http2/write.go diff --git a/_vendor/src/golang.org/x/net/http2/writesched.go b/vendor/golang.org/x/net/http2/writesched.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/writesched.go rename to vendor/golang.org/x/net/http2/writesched.go diff --git a/_vendor/src/golang.org/x/net/http2/writesched_priority.go b/vendor/golang.org/x/net/http2/writesched_priority.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/writesched_priority.go rename to vendor/golang.org/x/net/http2/writesched_priority.go diff --git a/_vendor/src/golang.org/x/net/http2/writesched_random.go b/vendor/golang.org/x/net/http2/writesched_random.go similarity index 100% rename from _vendor/src/golang.org/x/net/http2/writesched_random.go rename to vendor/golang.org/x/net/http2/writesched_random.go diff --git a/vendor/golang.org/x/net/idna/BUILD.bazel b/vendor/golang.org/x/net/idna/BUILD.bazel new file mode 100644 index 0000000000000..8484b0c4f7055 --- /dev/null +++ b/vendor/golang.org/x/net/idna/BUILD.bazel @@ -0,0 +1,17 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "idna.go", + "punycode.go", + "tables.go", + "trie.go", + "trieval.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/secure/bidirule:go_default_library", + "//vendor/golang.org/x/text/unicode/norm:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/net/idna/idna.go b/vendor/golang.org/x/net/idna/idna.go similarity index 100% rename from _vendor/src/golang.org/x/net/idna/idna.go rename to vendor/golang.org/x/net/idna/idna.go diff --git a/_vendor/src/golang.org/x/net/idna/punycode.go b/vendor/golang.org/x/net/idna/punycode.go similarity index 100% rename from _vendor/src/golang.org/x/net/idna/punycode.go rename to vendor/golang.org/x/net/idna/punycode.go diff --git a/_vendor/src/golang.org/x/net/idna/tables.go b/vendor/golang.org/x/net/idna/tables.go similarity index 100% rename from _vendor/src/golang.org/x/net/idna/tables.go rename to vendor/golang.org/x/net/idna/tables.go diff --git a/_vendor/src/golang.org/x/net/idna/trie.go b/vendor/golang.org/x/net/idna/trie.go similarity index 100% rename from _vendor/src/golang.org/x/net/idna/trie.go rename to vendor/golang.org/x/net/idna/trie.go diff --git a/_vendor/src/golang.org/x/net/idna/trieval.go b/vendor/golang.org/x/net/idna/trieval.go similarity index 100% rename from _vendor/src/golang.org/x/net/idna/trieval.go rename to vendor/golang.org/x/net/idna/trieval.go diff --git a/vendor/golang.org/x/net/internal/timeseries/BUILD.bazel b/vendor/golang.org/x/net/internal/timeseries/BUILD.bazel new file mode 100644 index 0000000000000..74e790c1d6c98 --- /dev/null +++ b/vendor/golang.org/x/net/internal/timeseries/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["timeseries.go"], + visibility = ["//vendor/golang.org/x/net:__subpackages__"], +) diff --git a/_vendor/src/golang.org/x/net/internal/timeseries/timeseries.go b/vendor/golang.org/x/net/internal/timeseries/timeseries.go similarity index 100% rename from _vendor/src/golang.org/x/net/internal/timeseries/timeseries.go rename to vendor/golang.org/x/net/internal/timeseries/timeseries.go diff --git a/vendor/golang.org/x/net/lex/httplex/BUILD.bazel b/vendor/golang.org/x/net/lex/httplex/BUILD.bazel new file mode 100644 index 0000000000000..99c2ad6dda3d1 --- /dev/null +++ b/vendor/golang.org/x/net/lex/httplex/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["httplex.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/golang.org/x/net/idna:go_default_library"], +) diff --git a/_vendor/src/golang.org/x/net/lex/httplex/httplex.go b/vendor/golang.org/x/net/lex/httplex/httplex.go similarity index 100% rename from _vendor/src/golang.org/x/net/lex/httplex/httplex.go rename to vendor/golang.org/x/net/lex/httplex/httplex.go diff --git a/vendor/golang.org/x/net/trace/BUILD.bazel b/vendor/golang.org/x/net/trace/BUILD.bazel new file mode 100644 index 0000000000000..7a2a4c272bbf4 --- /dev/null +++ b/vendor/golang.org/x/net/trace/BUILD.bazel @@ -0,0 +1,15 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "events.go", + "histogram.go", + "trace.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/golang.org/x/net/internal/timeseries:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/net/trace/events.go b/vendor/golang.org/x/net/trace/events.go similarity index 100% rename from _vendor/src/golang.org/x/net/trace/events.go rename to vendor/golang.org/x/net/trace/events.go diff --git a/_vendor/src/golang.org/x/net/trace/histogram.go b/vendor/golang.org/x/net/trace/histogram.go similarity index 100% rename from _vendor/src/golang.org/x/net/trace/histogram.go rename to vendor/golang.org/x/net/trace/histogram.go diff --git a/_vendor/src/golang.org/x/net/trace/trace.go b/vendor/golang.org/x/net/trace/trace.go similarity index 100% rename from _vendor/src/golang.org/x/net/trace/trace.go rename to vendor/golang.org/x/net/trace/trace.go diff --git a/_vendor/src/golang.org/x/sys/LICENSE b/vendor/golang.org/x/sys/LICENSE similarity index 100% rename from _vendor/src/golang.org/x/sys/LICENSE rename to vendor/golang.org/x/sys/LICENSE diff --git a/_vendor/src/golang.org/x/sys/PATENTS b/vendor/golang.org/x/sys/PATENTS similarity index 100% rename from _vendor/src/golang.org/x/sys/PATENTS rename to vendor/golang.org/x/sys/PATENTS diff --git a/vendor/golang.org/x/sys/unix/BUILD.bazel b/vendor/golang.org/x/sys/unix/BUILD.bazel new file mode 100644 index 0000000000000..1a2a36733cc1d --- /dev/null +++ b/vendor/golang.org/x/sys/unix/BUILD.bazel @@ -0,0 +1,49 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "env_unset.go", + "asm.s", + ] + select({ + "@io_bazel_rules_go//go/platform:darwin_amd64": [ + "constants.go", + "env_unix.go", + "flock.go", + "race0.go", + "sockcmsg_unix.go", + "str.go", + "syscall.go", + "syscall_bsd.go", + "syscall_darwin.go", + "syscall_darwin_amd64.go", + "syscall_unix.go", + "zerrors_darwin_amd64.go", + "zsyscall_darwin_amd64.go", + "zsysnum_darwin_amd64.go", + "ztypes_darwin_amd64.go", + "asm_darwin_amd64.s", + ], + "@io_bazel_rules_go//go/platform:linux_amd64": [ + "bluetooth_linux.go", + "constants.go", + "env_unix.go", + "flock.go", + "race0.go", + "sockcmsg_linux.go", + "sockcmsg_unix.go", + "str.go", + "syscall.go", + "syscall_linux.go", + "syscall_linux_amd64.go", + "syscall_unix.go", + "zerrors_linux_amd64.go", + "zsyscall_linux_amd64.go", + "zsysnum_linux_amd64.go", + "ztypes_linux_amd64.go", + "asm_linux_amd64.s", + ], + "//conditions:default": [], + }), + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/golang.org/x/sys/unix/asm.s b/vendor/golang.org/x/sys/unix/asm.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm.s rename to vendor/golang.org/x/sys/unix/asm.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_darwin_386.s b/vendor/golang.org/x/sys/unix/asm_darwin_386.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_darwin_386.s rename to vendor/golang.org/x/sys/unix/asm_darwin_386.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_darwin_amd64.s b/vendor/golang.org/x/sys/unix/asm_darwin_amd64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_darwin_amd64.s rename to vendor/golang.org/x/sys/unix/asm_darwin_amd64.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_darwin_arm.s b/vendor/golang.org/x/sys/unix/asm_darwin_arm.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_darwin_arm.s rename to vendor/golang.org/x/sys/unix/asm_darwin_arm.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_darwin_arm64.s b/vendor/golang.org/x/sys/unix/asm_darwin_arm64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_darwin_arm64.s rename to vendor/golang.org/x/sys/unix/asm_darwin_arm64.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_dragonfly_amd64.s b/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_dragonfly_amd64.s rename to vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_freebsd_386.s b/vendor/golang.org/x/sys/unix/asm_freebsd_386.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_freebsd_386.s rename to vendor/golang.org/x/sys/unix/asm_freebsd_386.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_freebsd_amd64.s b/vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_freebsd_amd64.s rename to vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_freebsd_arm.s b/vendor/golang.org/x/sys/unix/asm_freebsd_arm.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_freebsd_arm.s rename to vendor/golang.org/x/sys/unix/asm_freebsd_arm.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_linux_386.s b/vendor/golang.org/x/sys/unix/asm_linux_386.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_linux_386.s rename to vendor/golang.org/x/sys/unix/asm_linux_386.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_linux_amd64.s b/vendor/golang.org/x/sys/unix/asm_linux_amd64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_linux_amd64.s rename to vendor/golang.org/x/sys/unix/asm_linux_amd64.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_linux_arm.s b/vendor/golang.org/x/sys/unix/asm_linux_arm.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_linux_arm.s rename to vendor/golang.org/x/sys/unix/asm_linux_arm.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_linux_arm64.s b/vendor/golang.org/x/sys/unix/asm_linux_arm64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_linux_arm64.s rename to vendor/golang.org/x/sys/unix/asm_linux_arm64.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_linux_mips64x.s b/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_linux_mips64x.s rename to vendor/golang.org/x/sys/unix/asm_linux_mips64x.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_linux_ppc64x.s b/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_linux_ppc64x.s rename to vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_linux_s390x.s b/vendor/golang.org/x/sys/unix/asm_linux_s390x.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_linux_s390x.s rename to vendor/golang.org/x/sys/unix/asm_linux_s390x.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_netbsd_386.s b/vendor/golang.org/x/sys/unix/asm_netbsd_386.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_netbsd_386.s rename to vendor/golang.org/x/sys/unix/asm_netbsd_386.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_netbsd_amd64.s b/vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_netbsd_amd64.s rename to vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_netbsd_arm.s b/vendor/golang.org/x/sys/unix/asm_netbsd_arm.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_netbsd_arm.s rename to vendor/golang.org/x/sys/unix/asm_netbsd_arm.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_openbsd_386.s b/vendor/golang.org/x/sys/unix/asm_openbsd_386.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_openbsd_386.s rename to vendor/golang.org/x/sys/unix/asm_openbsd_386.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_openbsd_amd64.s b/vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_openbsd_amd64.s rename to vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s diff --git a/_vendor/src/golang.org/x/sys/unix/asm_solaris_amd64.s b/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/asm_solaris_amd64.s rename to vendor/golang.org/x/sys/unix/asm_solaris_amd64.s diff --git a/_vendor/src/golang.org/x/sys/unix/bluetooth_linux.go b/vendor/golang.org/x/sys/unix/bluetooth_linux.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/bluetooth_linux.go rename to vendor/golang.org/x/sys/unix/bluetooth_linux.go diff --git a/_vendor/src/golang.org/x/sys/unix/constants.go b/vendor/golang.org/x/sys/unix/constants.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/constants.go rename to vendor/golang.org/x/sys/unix/constants.go diff --git a/_vendor/src/golang.org/x/sys/unix/env_unix.go b/vendor/golang.org/x/sys/unix/env_unix.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/env_unix.go rename to vendor/golang.org/x/sys/unix/env_unix.go diff --git a/_vendor/src/golang.org/x/sys/unix/env_unset.go b/vendor/golang.org/x/sys/unix/env_unset.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/env_unset.go rename to vendor/golang.org/x/sys/unix/env_unset.go diff --git a/_vendor/src/golang.org/x/sys/unix/flock.go b/vendor/golang.org/x/sys/unix/flock.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/flock.go rename to vendor/golang.org/x/sys/unix/flock.go diff --git a/_vendor/src/golang.org/x/sys/unix/flock_linux_32bit.go b/vendor/golang.org/x/sys/unix/flock_linux_32bit.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/flock_linux_32bit.go rename to vendor/golang.org/x/sys/unix/flock_linux_32bit.go diff --git a/_vendor/src/golang.org/x/sys/unix/gccgo.go b/vendor/golang.org/x/sys/unix/gccgo.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/gccgo.go rename to vendor/golang.org/x/sys/unix/gccgo.go diff --git a/_vendor/src/golang.org/x/sys/unix/gccgo_c.c b/vendor/golang.org/x/sys/unix/gccgo_c.c similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/gccgo_c.c rename to vendor/golang.org/x/sys/unix/gccgo_c.c diff --git a/_vendor/src/golang.org/x/sys/unix/gccgo_linux_amd64.go b/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/gccgo_linux_amd64.go rename to vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/mkpost.go b/vendor/golang.org/x/sys/unix/mkpost.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/mkpost.go rename to vendor/golang.org/x/sys/unix/mkpost.go diff --git a/_vendor/src/golang.org/x/sys/unix/race.go b/vendor/golang.org/x/sys/unix/race.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/race.go rename to vendor/golang.org/x/sys/unix/race.go diff --git a/_vendor/src/golang.org/x/sys/unix/race0.go b/vendor/golang.org/x/sys/unix/race0.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/race0.go rename to vendor/golang.org/x/sys/unix/race0.go diff --git a/_vendor/src/golang.org/x/sys/unix/sockcmsg_linux.go b/vendor/golang.org/x/sys/unix/sockcmsg_linux.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/sockcmsg_linux.go rename to vendor/golang.org/x/sys/unix/sockcmsg_linux.go diff --git a/_vendor/src/golang.org/x/sys/unix/sockcmsg_unix.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/sockcmsg_unix.go rename to vendor/golang.org/x/sys/unix/sockcmsg_unix.go diff --git a/_vendor/src/golang.org/x/sys/unix/str.go b/vendor/golang.org/x/sys/unix/str.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/str.go rename to vendor/golang.org/x/sys/unix/str.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall.go b/vendor/golang.org/x/sys/unix/syscall.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall.go rename to vendor/golang.org/x/sys/unix/syscall.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_bsd.go b/vendor/golang.org/x/sys/unix/syscall_bsd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_bsd.go rename to vendor/golang.org/x/sys/unix/syscall_bsd.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_darwin.go rename to vendor/golang.org/x/sys/unix/syscall_darwin.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_darwin_386.go b/vendor/golang.org/x/sys/unix/syscall_darwin_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_darwin_386.go rename to vendor/golang.org/x/sys/unix/syscall_darwin_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_darwin_amd64.go rename to vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_darwin_arm.go rename to vendor/golang.org/x/sys/unix/syscall_darwin_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_darwin_arm64.go rename to vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_dragonfly.go rename to vendor/golang.org/x/sys/unix/syscall_dragonfly.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_dragonfly_amd64.go rename to vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_freebsd.go rename to vendor/golang.org/x/sys/unix/syscall_freebsd.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_freebsd_386.go rename to vendor/golang.org/x/sys/unix/syscall_freebsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_freebsd_amd64.go rename to vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_freebsd_arm.go rename to vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_linux.go rename to vendor/golang.org/x/sys/unix/syscall_linux.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_linux_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_linux_386.go rename to vendor/golang.org/x/sys/unix/syscall_linux_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_linux_amd64.go rename to vendor/golang.org/x/sys/unix/syscall_linux_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_linux_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_linux_arm.go rename to vendor/golang.org/x/sys/unix/syscall_linux_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_linux_arm64.go rename to vendor/golang.org/x/sys/unix/syscall_linux_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_linux_mips64x.go rename to vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_linux_ppc64x.go rename to vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_linux_s390x.go rename to vendor/golang.org/x/sys/unix/syscall_linux_s390x.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_netbsd.go rename to vendor/golang.org/x/sys/unix/syscall_netbsd.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_netbsd_386.go rename to vendor/golang.org/x/sys/unix/syscall_netbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_netbsd_amd64.go rename to vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_netbsd_arm.go rename to vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_no_getwd.go b/vendor/golang.org/x/sys/unix/syscall_no_getwd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_no_getwd.go rename to vendor/golang.org/x/sys/unix/syscall_no_getwd.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_openbsd.go rename to vendor/golang.org/x/sys/unix/syscall_openbsd.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_openbsd_386.go rename to vendor/golang.org/x/sys/unix/syscall_openbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_openbsd_amd64.go rename to vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_solaris.go b/vendor/golang.org/x/sys/unix/syscall_solaris.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_solaris.go rename to vendor/golang.org/x/sys/unix/syscall_solaris.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_solaris_amd64.go rename to vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/syscall_unix.go rename to vendor/golang.org/x/sys/unix/syscall_unix.go diff --git a/_vendor/src/golang.org/x/sys/unix/types_darwin.go b/vendor/golang.org/x/sys/unix/types_darwin.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/types_darwin.go rename to vendor/golang.org/x/sys/unix/types_darwin.go diff --git a/_vendor/src/golang.org/x/sys/unix/types_dragonfly.go b/vendor/golang.org/x/sys/unix/types_dragonfly.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/types_dragonfly.go rename to vendor/golang.org/x/sys/unix/types_dragonfly.go diff --git a/_vendor/src/golang.org/x/sys/unix/types_freebsd.go b/vendor/golang.org/x/sys/unix/types_freebsd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/types_freebsd.go rename to vendor/golang.org/x/sys/unix/types_freebsd.go diff --git a/_vendor/src/golang.org/x/sys/unix/types_linux.go b/vendor/golang.org/x/sys/unix/types_linux.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/types_linux.go rename to vendor/golang.org/x/sys/unix/types_linux.go diff --git a/_vendor/src/golang.org/x/sys/unix/types_netbsd.go b/vendor/golang.org/x/sys/unix/types_netbsd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/types_netbsd.go rename to vendor/golang.org/x/sys/unix/types_netbsd.go diff --git a/_vendor/src/golang.org/x/sys/unix/types_openbsd.go b/vendor/golang.org/x/sys/unix/types_openbsd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/types_openbsd.go rename to vendor/golang.org/x/sys/unix/types_openbsd.go diff --git a/_vendor/src/golang.org/x/sys/unix/types_solaris.go b/vendor/golang.org/x/sys/unix/types_solaris.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/types_solaris.go rename to vendor/golang.org/x/sys/unix/types_solaris.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_darwin_386.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_darwin_386.go rename to vendor/golang.org/x/sys/unix/zerrors_darwin_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_darwin_amd64.go rename to vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_darwin_arm.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_darwin_arm.go rename to vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_darwin_arm64.go rename to vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go rename to vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_freebsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_freebsd_386.go rename to vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_freebsd_amd64.go rename to vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_freebsd_arm.go rename to vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_386.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_amd64.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_arm.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_arm64.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_mips64.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_mips64le.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_ppc64.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_ppc64le.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_linux_s390x.go rename to vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_netbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_netbsd_386.go rename to vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_netbsd_amd64.go rename to vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_netbsd_arm.go rename to vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_openbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_openbsd_386.go rename to vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_openbsd_amd64.go rename to vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zerrors_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zerrors_solaris_amd64.go rename to vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_darwin_386.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_darwin_386.go rename to vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_darwin_amd64.go rename to vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_darwin_arm.go rename to vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_darwin_arm64.go rename to vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go rename to vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_freebsd_386.go rename to vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go rename to vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_freebsd_arm.go rename to vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_386.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_amd64.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_arm.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_arm64.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_mips64.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_mips64le.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_ppc64.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_linux_s390x.go rename to vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_netbsd_386.go rename to vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go rename to vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_netbsd_arm.go rename to vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_openbsd_386.go rename to vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go rename to vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsyscall_solaris_amd64.go rename to vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysctl_openbsd.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysctl_openbsd.go rename to vendor/golang.org/x/sys/unix/zsysctl_openbsd.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_darwin_386.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_darwin_386.go rename to vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_darwin_amd64.go rename to vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_darwin_arm.go rename to vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_darwin_arm64.go rename to vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go rename to vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_freebsd_386.go rename to vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go rename to vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_freebsd_arm.go rename to vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_386.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_amd64.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_arm.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_arm64.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_mips64.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_mips64le.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_ppc64.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_linux_s390x.go rename to vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_netbsd_386.go rename to vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go rename to vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_netbsd_arm.go rename to vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_openbsd_386.go rename to vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go rename to vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/zsysnum_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/zsysnum_solaris_amd64.go rename to vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_darwin_386.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_darwin_386.go rename to vendor/golang.org/x/sys/unix/ztypes_darwin_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_darwin_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_darwin_amd64.go rename to vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_darwin_arm.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_darwin_arm.go rename to vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_darwin_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_darwin_arm64.go rename to vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go rename to vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_freebsd_386.go rename to vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_freebsd_amd64.go rename to vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_freebsd_arm.go rename to vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_386.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_amd64.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_arm.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_arm64.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_mips64.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_mips64le.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_ppc64.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_ppc64le.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_linux_s390x.go rename to vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_netbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_netbsd_386.go rename to vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_netbsd_amd64.go rename to vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_netbsd_arm.go rename to vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_openbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_openbsd_386.go rename to vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_openbsd_amd64.go rename to vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go diff --git a/_vendor/src/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go similarity index 100% rename from _vendor/src/golang.org/x/sys/unix/ztypes_solaris_amd64.go rename to vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go diff --git a/_vendor/src/golang.org/x/text/LICENSE b/vendor/golang.org/x/text/LICENSE similarity index 100% rename from _vendor/src/golang.org/x/text/LICENSE rename to vendor/golang.org/x/text/LICENSE diff --git a/_vendor/src/golang.org/x/text/PATENTS b/vendor/golang.org/x/text/PATENTS similarity index 100% rename from _vendor/src/golang.org/x/text/PATENTS rename to vendor/golang.org/x/text/PATENTS diff --git a/vendor/golang.org/x/text/encoding/BUILD.bazel b/vendor/golang.org/x/text/encoding/BUILD.bazel new file mode 100644 index 0000000000000..7305cae59ca6b --- /dev/null +++ b/vendor/golang.org/x/text/encoding/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["encoding.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) diff --git a/vendor/golang.org/x/text/encoding/charmap/BUILD.bazel b/vendor/golang.org/x/text/encoding/charmap/BUILD.bazel new file mode 100644 index 0000000000000..dc2584f88fc60 --- /dev/null +++ b/vendor/golang.org/x/text/encoding/charmap/BUILD.bazel @@ -0,0 +1,16 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "charmap.go", + "tables.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/encoding:go_default_library", + "//vendor/golang.org/x/text/encoding/internal:go_default_library", + "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/text/encoding/charmap/charmap.go b/vendor/golang.org/x/text/encoding/charmap/charmap.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/charmap/charmap.go rename to vendor/golang.org/x/text/encoding/charmap/charmap.go diff --git a/_vendor/src/golang.org/x/text/encoding/charmap/maketables.go b/vendor/golang.org/x/text/encoding/charmap/maketables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/charmap/maketables.go rename to vendor/golang.org/x/text/encoding/charmap/maketables.go diff --git a/_vendor/src/golang.org/x/text/encoding/charmap/tables.go b/vendor/golang.org/x/text/encoding/charmap/tables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/charmap/tables.go rename to vendor/golang.org/x/text/encoding/charmap/tables.go diff --git a/_vendor/src/golang.org/x/text/encoding/encoding.go b/vendor/golang.org/x/text/encoding/encoding.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/encoding.go rename to vendor/golang.org/x/text/encoding/encoding.go diff --git a/vendor/golang.org/x/text/encoding/internal/BUILD.bazel b/vendor/golang.org/x/text/encoding/internal/BUILD.bazel new file mode 100644 index 0000000000000..fa4810bd8f054 --- /dev/null +++ b/vendor/golang.org/x/text/encoding/internal/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["internal.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/encoding:go_default_library", + "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) diff --git a/vendor/golang.org/x/text/encoding/internal/identifier/BUILD.bazel b/vendor/golang.org/x/text/encoding/internal/identifier/BUILD.bazel new file mode 100644 index 0000000000000..14b5b5d313db6 --- /dev/null +++ b/vendor/golang.org/x/text/encoding/internal/identifier/BUILD.bazel @@ -0,0 +1,10 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "identifier.go", + "mib.go", + ], + visibility = ["//vendor/golang.org/x/text/encoding:__subpackages__"], +) diff --git a/_vendor/src/golang.org/x/text/encoding/internal/identifier/gen.go b/vendor/golang.org/x/text/encoding/internal/identifier/gen.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/internal/identifier/gen.go rename to vendor/golang.org/x/text/encoding/internal/identifier/gen.go diff --git a/_vendor/src/golang.org/x/text/encoding/internal/identifier/identifier.go b/vendor/golang.org/x/text/encoding/internal/identifier/identifier.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/internal/identifier/identifier.go rename to vendor/golang.org/x/text/encoding/internal/identifier/identifier.go diff --git a/_vendor/src/golang.org/x/text/encoding/internal/identifier/mib.go b/vendor/golang.org/x/text/encoding/internal/identifier/mib.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/internal/identifier/mib.go rename to vendor/golang.org/x/text/encoding/internal/identifier/mib.go diff --git a/_vendor/src/golang.org/x/text/encoding/internal/internal.go b/vendor/golang.org/x/text/encoding/internal/internal.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/internal/internal.go rename to vendor/golang.org/x/text/encoding/internal/internal.go diff --git a/vendor/golang.org/x/text/encoding/japanese/BUILD.bazel b/vendor/golang.org/x/text/encoding/japanese/BUILD.bazel new file mode 100644 index 0000000000000..9cdf2bb74a75a --- /dev/null +++ b/vendor/golang.org/x/text/encoding/japanese/BUILD.bazel @@ -0,0 +1,19 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "all.go", + "eucjp.go", + "iso2022jp.go", + "shiftjis.go", + "tables.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/encoding:go_default_library", + "//vendor/golang.org/x/text/encoding/internal:go_default_library", + "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/text/encoding/japanese/all.go b/vendor/golang.org/x/text/encoding/japanese/all.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/japanese/all.go rename to vendor/golang.org/x/text/encoding/japanese/all.go diff --git a/_vendor/src/golang.org/x/text/encoding/japanese/eucjp.go b/vendor/golang.org/x/text/encoding/japanese/eucjp.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/japanese/eucjp.go rename to vendor/golang.org/x/text/encoding/japanese/eucjp.go diff --git a/_vendor/src/golang.org/x/text/encoding/japanese/iso2022jp.go b/vendor/golang.org/x/text/encoding/japanese/iso2022jp.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/japanese/iso2022jp.go rename to vendor/golang.org/x/text/encoding/japanese/iso2022jp.go diff --git a/_vendor/src/golang.org/x/text/encoding/japanese/maketables.go b/vendor/golang.org/x/text/encoding/japanese/maketables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/japanese/maketables.go rename to vendor/golang.org/x/text/encoding/japanese/maketables.go diff --git a/_vendor/src/golang.org/x/text/encoding/japanese/shiftjis.go b/vendor/golang.org/x/text/encoding/japanese/shiftjis.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/japanese/shiftjis.go rename to vendor/golang.org/x/text/encoding/japanese/shiftjis.go diff --git a/_vendor/src/golang.org/x/text/encoding/japanese/tables.go b/vendor/golang.org/x/text/encoding/japanese/tables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/japanese/tables.go rename to vendor/golang.org/x/text/encoding/japanese/tables.go diff --git a/vendor/golang.org/x/text/encoding/korean/BUILD.bazel b/vendor/golang.org/x/text/encoding/korean/BUILD.bazel new file mode 100644 index 0000000000000..4ad3d4f2ab05a --- /dev/null +++ b/vendor/golang.org/x/text/encoding/korean/BUILD.bazel @@ -0,0 +1,16 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "euckr.go", + "tables.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/encoding:go_default_library", + "//vendor/golang.org/x/text/encoding/internal:go_default_library", + "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/text/encoding/korean/euckr.go b/vendor/golang.org/x/text/encoding/korean/euckr.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/korean/euckr.go rename to vendor/golang.org/x/text/encoding/korean/euckr.go diff --git a/_vendor/src/golang.org/x/text/encoding/korean/maketables.go b/vendor/golang.org/x/text/encoding/korean/maketables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/korean/maketables.go rename to vendor/golang.org/x/text/encoding/korean/maketables.go diff --git a/_vendor/src/golang.org/x/text/encoding/korean/tables.go b/vendor/golang.org/x/text/encoding/korean/tables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/korean/tables.go rename to vendor/golang.org/x/text/encoding/korean/tables.go diff --git a/vendor/golang.org/x/text/encoding/simplifiedchinese/BUILD.bazel b/vendor/golang.org/x/text/encoding/simplifiedchinese/BUILD.bazel new file mode 100644 index 0000000000000..6ac13518b15c2 --- /dev/null +++ b/vendor/golang.org/x/text/encoding/simplifiedchinese/BUILD.bazel @@ -0,0 +1,18 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "all.go", + "gbk.go", + "hzgb2312.go", + "tables.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/encoding:go_default_library", + "//vendor/golang.org/x/text/encoding/internal:go_default_library", + "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/text/encoding/simplifiedchinese/all.go b/vendor/golang.org/x/text/encoding/simplifiedchinese/all.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/simplifiedchinese/all.go rename to vendor/golang.org/x/text/encoding/simplifiedchinese/all.go diff --git a/_vendor/src/golang.org/x/text/encoding/simplifiedchinese/gbk.go b/vendor/golang.org/x/text/encoding/simplifiedchinese/gbk.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/simplifiedchinese/gbk.go rename to vendor/golang.org/x/text/encoding/simplifiedchinese/gbk.go diff --git a/_vendor/src/golang.org/x/text/encoding/simplifiedchinese/hzgb2312.go b/vendor/golang.org/x/text/encoding/simplifiedchinese/hzgb2312.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/simplifiedchinese/hzgb2312.go rename to vendor/golang.org/x/text/encoding/simplifiedchinese/hzgb2312.go diff --git a/_vendor/src/golang.org/x/text/encoding/simplifiedchinese/maketables.go b/vendor/golang.org/x/text/encoding/simplifiedchinese/maketables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/simplifiedchinese/maketables.go rename to vendor/golang.org/x/text/encoding/simplifiedchinese/maketables.go diff --git a/_vendor/src/golang.org/x/text/encoding/simplifiedchinese/tables.go b/vendor/golang.org/x/text/encoding/simplifiedchinese/tables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/simplifiedchinese/tables.go rename to vendor/golang.org/x/text/encoding/simplifiedchinese/tables.go diff --git a/vendor/golang.org/x/text/encoding/traditionalchinese/BUILD.bazel b/vendor/golang.org/x/text/encoding/traditionalchinese/BUILD.bazel new file mode 100644 index 0000000000000..8c7a34d455146 --- /dev/null +++ b/vendor/golang.org/x/text/encoding/traditionalchinese/BUILD.bazel @@ -0,0 +1,16 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "big5.go", + "tables.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/encoding:go_default_library", + "//vendor/golang.org/x/text/encoding/internal:go_default_library", + "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/text/encoding/traditionalchinese/big5.go b/vendor/golang.org/x/text/encoding/traditionalchinese/big5.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/traditionalchinese/big5.go rename to vendor/golang.org/x/text/encoding/traditionalchinese/big5.go diff --git a/_vendor/src/golang.org/x/text/encoding/traditionalchinese/maketables.go b/vendor/golang.org/x/text/encoding/traditionalchinese/maketables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/traditionalchinese/maketables.go rename to vendor/golang.org/x/text/encoding/traditionalchinese/maketables.go diff --git a/_vendor/src/golang.org/x/text/encoding/traditionalchinese/tables.go b/vendor/golang.org/x/text/encoding/traditionalchinese/tables.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/traditionalchinese/tables.go rename to vendor/golang.org/x/text/encoding/traditionalchinese/tables.go diff --git a/vendor/golang.org/x/text/encoding/unicode/BUILD.bazel b/vendor/golang.org/x/text/encoding/unicode/BUILD.bazel new file mode 100644 index 0000000000000..119e125ee1596 --- /dev/null +++ b/vendor/golang.org/x/text/encoding/unicode/BUILD.bazel @@ -0,0 +1,18 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "override.go", + "unicode.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/encoding:go_default_library", + "//vendor/golang.org/x/text/encoding/internal:go_default_library", + "//vendor/golang.org/x/text/encoding/internal/identifier:go_default_library", + "//vendor/golang.org/x/text/internal/utf8internal:go_default_library", + "//vendor/golang.org/x/text/runes:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/text/encoding/unicode/override.go b/vendor/golang.org/x/text/encoding/unicode/override.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/unicode/override.go rename to vendor/golang.org/x/text/encoding/unicode/override.go diff --git a/_vendor/src/golang.org/x/text/encoding/unicode/unicode.go b/vendor/golang.org/x/text/encoding/unicode/unicode.go similarity index 100% rename from _vendor/src/golang.org/x/text/encoding/unicode/unicode.go rename to vendor/golang.org/x/text/encoding/unicode/unicode.go diff --git a/vendor/golang.org/x/text/internal/utf8internal/BUILD.bazel b/vendor/golang.org/x/text/internal/utf8internal/BUILD.bazel new file mode 100644 index 0000000000000..5451e25e622ed --- /dev/null +++ b/vendor/golang.org/x/text/internal/utf8internal/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["utf8internal.go"], + visibility = ["//vendor/golang.org/x/text:__subpackages__"], +) diff --git a/_vendor/src/golang.org/x/text/internal/utf8internal/utf8internal.go b/vendor/golang.org/x/text/internal/utf8internal/utf8internal.go similarity index 100% rename from _vendor/src/golang.org/x/text/internal/utf8internal/utf8internal.go rename to vendor/golang.org/x/text/internal/utf8internal/utf8internal.go diff --git a/vendor/golang.org/x/text/runes/BUILD.bazel b/vendor/golang.org/x/text/runes/BUILD.bazel new file mode 100644 index 0000000000000..6bfb443dd7c8e --- /dev/null +++ b/vendor/golang.org/x/text/runes/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "cond.go", + "runes.go", + ], + visibility = ["//visibility:public"], + deps = ["//vendor/golang.org/x/text/transform:go_default_library"], +) diff --git a/_vendor/src/golang.org/x/text/runes/cond.go b/vendor/golang.org/x/text/runes/cond.go similarity index 100% rename from _vendor/src/golang.org/x/text/runes/cond.go rename to vendor/golang.org/x/text/runes/cond.go diff --git a/_vendor/src/golang.org/x/text/runes/runes.go b/vendor/golang.org/x/text/runes/runes.go similarity index 100% rename from _vendor/src/golang.org/x/text/runes/runes.go rename to vendor/golang.org/x/text/runes/runes.go diff --git a/vendor/golang.org/x/text/secure/bidirule/BUILD.bazel b/vendor/golang.org/x/text/secure/bidirule/BUILD.bazel new file mode 100644 index 0000000000000..49023947fa790 --- /dev/null +++ b/vendor/golang.org/x/text/secure/bidirule/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["bidirule.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/text/transform:go_default_library", + "//vendor/golang.org/x/text/unicode/bidi:go_default_library", + ], +) diff --git a/_vendor/src/golang.org/x/text/secure/bidirule/bidirule.go b/vendor/golang.org/x/text/secure/bidirule/bidirule.go similarity index 100% rename from _vendor/src/golang.org/x/text/secure/bidirule/bidirule.go rename to vendor/golang.org/x/text/secure/bidirule/bidirule.go diff --git a/vendor/golang.org/x/text/transform/BUILD.bazel b/vendor/golang.org/x/text/transform/BUILD.bazel new file mode 100644 index 0000000000000..8b79629b47ca1 --- /dev/null +++ b/vendor/golang.org/x/text/transform/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["transform.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/golang.org/x/text/transform/transform.go b/vendor/golang.org/x/text/transform/transform.go similarity index 100% rename from _vendor/src/golang.org/x/text/transform/transform.go rename to vendor/golang.org/x/text/transform/transform.go diff --git a/vendor/golang.org/x/text/unicode/bidi/BUILD.bazel b/vendor/golang.org/x/text/unicode/bidi/BUILD.bazel new file mode 100644 index 0000000000000..376c6e6812adb --- /dev/null +++ b/vendor/golang.org/x/text/unicode/bidi/BUILD.bazel @@ -0,0 +1,14 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "bidi.go", + "bracket.go", + "core.go", + "prop.go", + "tables.go", + "trieval.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/bidi.go b/vendor/golang.org/x/text/unicode/bidi/bidi.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/bidi.go rename to vendor/golang.org/x/text/unicode/bidi/bidi.go diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/bracket.go b/vendor/golang.org/x/text/unicode/bidi/bracket.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/bracket.go rename to vendor/golang.org/x/text/unicode/bidi/bracket.go diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/core.go b/vendor/golang.org/x/text/unicode/bidi/core.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/core.go rename to vendor/golang.org/x/text/unicode/bidi/core.go diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/gen.go b/vendor/golang.org/x/text/unicode/bidi/gen.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/gen.go rename to vendor/golang.org/x/text/unicode/bidi/gen.go diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/gen_ranges.go b/vendor/golang.org/x/text/unicode/bidi/gen_ranges.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/gen_ranges.go rename to vendor/golang.org/x/text/unicode/bidi/gen_ranges.go diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/gen_trieval.go b/vendor/golang.org/x/text/unicode/bidi/gen_trieval.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/gen_trieval.go rename to vendor/golang.org/x/text/unicode/bidi/gen_trieval.go diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/prop.go b/vendor/golang.org/x/text/unicode/bidi/prop.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/prop.go rename to vendor/golang.org/x/text/unicode/bidi/prop.go diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/tables.go b/vendor/golang.org/x/text/unicode/bidi/tables.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/tables.go rename to vendor/golang.org/x/text/unicode/bidi/tables.go diff --git a/_vendor/src/golang.org/x/text/unicode/bidi/trieval.go b/vendor/golang.org/x/text/unicode/bidi/trieval.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/bidi/trieval.go rename to vendor/golang.org/x/text/unicode/bidi/trieval.go diff --git a/vendor/golang.org/x/text/unicode/norm/BUILD.bazel b/vendor/golang.org/x/text/unicode/norm/BUILD.bazel new file mode 100644 index 0000000000000..468dbd03d47dd --- /dev/null +++ b/vendor/golang.org/x/text/unicode/norm/BUILD.bazel @@ -0,0 +1,18 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "composition.go", + "forminfo.go", + "input.go", + "iter.go", + "normalize.go", + "readwriter.go", + "tables.go", + "transform.go", + "trie.go", + ], + visibility = ["//visibility:public"], + deps = ["//vendor/golang.org/x/text/transform:go_default_library"], +) diff --git a/_vendor/src/golang.org/x/text/unicode/norm/composition.go b/vendor/golang.org/x/text/unicode/norm/composition.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/composition.go rename to vendor/golang.org/x/text/unicode/norm/composition.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/forminfo.go b/vendor/golang.org/x/text/unicode/norm/forminfo.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/forminfo.go rename to vendor/golang.org/x/text/unicode/norm/forminfo.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/input.go b/vendor/golang.org/x/text/unicode/norm/input.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/input.go rename to vendor/golang.org/x/text/unicode/norm/input.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/iter.go b/vendor/golang.org/x/text/unicode/norm/iter.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/iter.go rename to vendor/golang.org/x/text/unicode/norm/iter.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/maketables.go b/vendor/golang.org/x/text/unicode/norm/maketables.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/maketables.go rename to vendor/golang.org/x/text/unicode/norm/maketables.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/normalize.go b/vendor/golang.org/x/text/unicode/norm/normalize.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/normalize.go rename to vendor/golang.org/x/text/unicode/norm/normalize.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/readwriter.go b/vendor/golang.org/x/text/unicode/norm/readwriter.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/readwriter.go rename to vendor/golang.org/x/text/unicode/norm/readwriter.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/tables.go b/vendor/golang.org/x/text/unicode/norm/tables.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/tables.go rename to vendor/golang.org/x/text/unicode/norm/tables.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/transform.go b/vendor/golang.org/x/text/unicode/norm/transform.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/transform.go rename to vendor/golang.org/x/text/unicode/norm/transform.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/trie.go b/vendor/golang.org/x/text/unicode/norm/trie.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/trie.go rename to vendor/golang.org/x/text/unicode/norm/trie.go diff --git a/_vendor/src/golang.org/x/text/unicode/norm/triegen.go b/vendor/golang.org/x/text/unicode/norm/triegen.go similarity index 100% rename from _vendor/src/golang.org/x/text/unicode/norm/triegen.go rename to vendor/golang.org/x/text/unicode/norm/triegen.go diff --git a/_vendor/src/google.golang.org/genproto/LICENSE b/vendor/google.golang.org/genproto/LICENSE similarity index 100% rename from _vendor/src/google.golang.org/genproto/LICENSE rename to vendor/google.golang.org/genproto/LICENSE diff --git a/vendor/google.golang.org/genproto/googleapis/rpc/status/BUILD.bazel b/vendor/google.golang.org/genproto/googleapis/rpc/status/BUILD.bazel new file mode 100644 index 0000000000000..f91368db5085c --- /dev/null +++ b/vendor/google.golang.org/genproto/googleapis/rpc/status/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["status.pb.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/github.com/golang/protobuf/ptypes/any:go_default_library", + ], +) diff --git a/_vendor/src/google.golang.org/genproto/googleapis/rpc/status/status.pb.go b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go similarity index 100% rename from _vendor/src/google.golang.org/genproto/googleapis/rpc/status/status.pb.go rename to vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go diff --git a/vendor/google.golang.org/grpc/BUILD.bazel b/vendor/google.golang.org/grpc/BUILD.bazel new file mode 100644 index 0000000000000..5991ecb81f9d0 --- /dev/null +++ b/vendor/google.golang.org/grpc/BUILD.bazel @@ -0,0 +1,41 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "backoff.go", + "balancer.go", + "call.go", + "clientconn.go", + "codec.go", + "doc.go", + "go17.go", + "grpclb.go", + "interceptor.go", + "proxy.go", + "rpc_util.go", + "server.go", + "stream.go", + "trace.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/golang.org/x/net/http2:go_default_library", + "//vendor/golang.org/x/net/trace:go_default_library", + "//vendor/google.golang.org/grpc/codes:go_default_library", + "//vendor/google.golang.org/grpc/credentials:go_default_library", + "//vendor/google.golang.org/grpc/grpclb/grpc_lb_v1:go_default_library", + "//vendor/google.golang.org/grpc/grpclog:go_default_library", + "//vendor/google.golang.org/grpc/internal:go_default_library", + "//vendor/google.golang.org/grpc/keepalive:go_default_library", + "//vendor/google.golang.org/grpc/metadata:go_default_library", + "//vendor/google.golang.org/grpc/naming:go_default_library", + "//vendor/google.golang.org/grpc/peer:go_default_library", + "//vendor/google.golang.org/grpc/stats:go_default_library", + "//vendor/google.golang.org/grpc/status:go_default_library", + "//vendor/google.golang.org/grpc/tap:go_default_library", + "//vendor/google.golang.org/grpc/transport:go_default_library", + ], +) diff --git a/_vendor/src/google.golang.org/grpc/LICENSE b/vendor/google.golang.org/grpc/LICENSE similarity index 100% rename from _vendor/src/google.golang.org/grpc/LICENSE rename to vendor/google.golang.org/grpc/LICENSE diff --git a/_vendor/src/google.golang.org/grpc/PATENTS b/vendor/google.golang.org/grpc/PATENTS similarity index 100% rename from _vendor/src/google.golang.org/grpc/PATENTS rename to vendor/google.golang.org/grpc/PATENTS diff --git a/_vendor/src/google.golang.org/grpc/backoff.go b/vendor/google.golang.org/grpc/backoff.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/backoff.go rename to vendor/google.golang.org/grpc/backoff.go diff --git a/_vendor/src/google.golang.org/grpc/balancer.go b/vendor/google.golang.org/grpc/balancer.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/balancer.go rename to vendor/google.golang.org/grpc/balancer.go diff --git a/_vendor/src/google.golang.org/grpc/call.go b/vendor/google.golang.org/grpc/call.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/call.go rename to vendor/google.golang.org/grpc/call.go diff --git a/_vendor/src/google.golang.org/grpc/clientconn.go b/vendor/google.golang.org/grpc/clientconn.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/clientconn.go rename to vendor/google.golang.org/grpc/clientconn.go diff --git a/_vendor/src/google.golang.org/grpc/codec.go b/vendor/google.golang.org/grpc/codec.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/codec.go rename to vendor/google.golang.org/grpc/codec.go diff --git a/vendor/google.golang.org/grpc/codes/BUILD.bazel b/vendor/google.golang.org/grpc/codes/BUILD.bazel new file mode 100644 index 0000000000000..a484cb4f47919 --- /dev/null +++ b/vendor/google.golang.org/grpc/codes/BUILD.bazel @@ -0,0 +1,10 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "code_string.go", + "codes.go", + ], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/google.golang.org/grpc/codes/code_string.go b/vendor/google.golang.org/grpc/codes/code_string.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/codes/code_string.go rename to vendor/google.golang.org/grpc/codes/code_string.go diff --git a/_vendor/src/google.golang.org/grpc/codes/codes.go b/vendor/google.golang.org/grpc/codes/codes.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/codes/codes.go rename to vendor/google.golang.org/grpc/codes/codes.go diff --git a/vendor/google.golang.org/grpc/credentials/BUILD.bazel b/vendor/google.golang.org/grpc/credentials/BUILD.bazel new file mode 100644 index 0000000000000..c22ad00555086 --- /dev/null +++ b/vendor/google.golang.org/grpc/credentials/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "credentials.go", + "credentials_util_go18.go", + ], + visibility = ["//visibility:public"], + deps = ["//vendor/golang.org/x/net/context:go_default_library"], +) diff --git a/_vendor/src/google.golang.org/grpc/credentials/credentials.go b/vendor/google.golang.org/grpc/credentials/credentials.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/credentials/credentials.go rename to vendor/google.golang.org/grpc/credentials/credentials.go diff --git a/_vendor/src/google.golang.org/grpc/credentials/credentials_util_go17.go b/vendor/google.golang.org/grpc/credentials/credentials_util_go17.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/credentials/credentials_util_go17.go rename to vendor/google.golang.org/grpc/credentials/credentials_util_go17.go diff --git a/_vendor/src/google.golang.org/grpc/credentials/credentials_util_go18.go b/vendor/google.golang.org/grpc/credentials/credentials_util_go18.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/credentials/credentials_util_go18.go rename to vendor/google.golang.org/grpc/credentials/credentials_util_go18.go diff --git a/_vendor/src/google.golang.org/grpc/credentials/credentials_util_pre_go17.go b/vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/credentials/credentials_util_pre_go17.go rename to vendor/google.golang.org/grpc/credentials/credentials_util_pre_go17.go diff --git a/_vendor/src/google.golang.org/grpc/doc.go b/vendor/google.golang.org/grpc/doc.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/doc.go rename to vendor/google.golang.org/grpc/doc.go diff --git a/_vendor/src/google.golang.org/grpc/go16.go b/vendor/google.golang.org/grpc/go16.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/go16.go rename to vendor/google.golang.org/grpc/go16.go diff --git a/_vendor/src/google.golang.org/grpc/go17.go b/vendor/google.golang.org/grpc/go17.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/go17.go rename to vendor/google.golang.org/grpc/go17.go diff --git a/_vendor/src/google.golang.org/grpc/grpclb.go b/vendor/google.golang.org/grpc/grpclb.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/grpclb.go rename to vendor/google.golang.org/grpc/grpclb.go diff --git a/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/BUILD.bazel b/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/BUILD.bazel new file mode 100644 index 0000000000000..cf6e168799ba1 --- /dev/null +++ b/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["grpclb.pb.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/golang/protobuf/proto:go_default_library"], +) diff --git a/_vendor/src/google.golang.org/grpc/grpclb/grpc_lb_v1/grpclb.pb.go b/vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/grpclb.pb.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/grpclb/grpc_lb_v1/grpclb.pb.go rename to vendor/google.golang.org/grpc/grpclb/grpc_lb_v1/grpclb.pb.go diff --git a/vendor/google.golang.org/grpc/grpclog/BUILD.bazel b/vendor/google.golang.org/grpc/grpclog/BUILD.bazel new file mode 100644 index 0000000000000..bd44f1d7acdd5 --- /dev/null +++ b/vendor/google.golang.org/grpc/grpclog/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["logger.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/google.golang.org/grpc/grpclog/logger.go b/vendor/google.golang.org/grpc/grpclog/logger.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/grpclog/logger.go rename to vendor/google.golang.org/grpc/grpclog/logger.go diff --git a/_vendor/src/google.golang.org/grpc/interceptor.go b/vendor/google.golang.org/grpc/interceptor.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/interceptor.go rename to vendor/google.golang.org/grpc/interceptor.go diff --git a/vendor/google.golang.org/grpc/internal/BUILD.bazel b/vendor/google.golang.org/grpc/internal/BUILD.bazel new file mode 100644 index 0000000000000..137458b5c6f0a --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["internal.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/google.golang.org/grpc/internal/internal.go b/vendor/google.golang.org/grpc/internal/internal.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/internal/internal.go rename to vendor/google.golang.org/grpc/internal/internal.go diff --git a/vendor/google.golang.org/grpc/keepalive/BUILD.bazel b/vendor/google.golang.org/grpc/keepalive/BUILD.bazel new file mode 100644 index 0000000000000..839f1bca4b626 --- /dev/null +++ b/vendor/google.golang.org/grpc/keepalive/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["keepalive.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/google.golang.org/grpc/keepalive/keepalive.go b/vendor/google.golang.org/grpc/keepalive/keepalive.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/keepalive/keepalive.go rename to vendor/google.golang.org/grpc/keepalive/keepalive.go diff --git a/vendor/google.golang.org/grpc/metadata/BUILD.bazel b/vendor/google.golang.org/grpc/metadata/BUILD.bazel new file mode 100644 index 0000000000000..60883f2a97b74 --- /dev/null +++ b/vendor/google.golang.org/grpc/metadata/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["metadata.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/golang.org/x/net/context:go_default_library"], +) diff --git a/_vendor/src/google.golang.org/grpc/metadata/metadata.go b/vendor/google.golang.org/grpc/metadata/metadata.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/metadata/metadata.go rename to vendor/google.golang.org/grpc/metadata/metadata.go diff --git a/vendor/google.golang.org/grpc/naming/BUILD.bazel b/vendor/google.golang.org/grpc/naming/BUILD.bazel new file mode 100644 index 0000000000000..48befb37688d9 --- /dev/null +++ b/vendor/google.golang.org/grpc/naming/BUILD.bazel @@ -0,0 +1,7 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["naming.go"], + visibility = ["//visibility:public"], +) diff --git a/_vendor/src/google.golang.org/grpc/naming/naming.go b/vendor/google.golang.org/grpc/naming/naming.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/naming/naming.go rename to vendor/google.golang.org/grpc/naming/naming.go diff --git a/vendor/google.golang.org/grpc/peer/BUILD.bazel b/vendor/google.golang.org/grpc/peer/BUILD.bazel new file mode 100644 index 0000000000000..89173297c5245 --- /dev/null +++ b/vendor/google.golang.org/grpc/peer/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["peer.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/google.golang.org/grpc/credentials:go_default_library", + ], +) diff --git a/_vendor/src/google.golang.org/grpc/peer/peer.go b/vendor/google.golang.org/grpc/peer/peer.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/peer/peer.go rename to vendor/google.golang.org/grpc/peer/peer.go diff --git a/_vendor/src/google.golang.org/grpc/proxy.go b/vendor/google.golang.org/grpc/proxy.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/proxy.go rename to vendor/google.golang.org/grpc/proxy.go diff --git a/_vendor/src/google.golang.org/grpc/rpc_util.go b/vendor/google.golang.org/grpc/rpc_util.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/rpc_util.go rename to vendor/google.golang.org/grpc/rpc_util.go diff --git a/_vendor/src/google.golang.org/grpc/server.go b/vendor/google.golang.org/grpc/server.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/server.go rename to vendor/google.golang.org/grpc/server.go diff --git a/vendor/google.golang.org/grpc/stats/BUILD.bazel b/vendor/google.golang.org/grpc/stats/BUILD.bazel new file mode 100644 index 0000000000000..f7c9c1a47dda4 --- /dev/null +++ b/vendor/google.golang.org/grpc/stats/BUILD.bazel @@ -0,0 +1,11 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "handlers.go", + "stats.go", + ], + visibility = ["//visibility:public"], + deps = ["//vendor/golang.org/x/net/context:go_default_library"], +) diff --git a/_vendor/src/google.golang.org/grpc/stats/handlers.go b/vendor/google.golang.org/grpc/stats/handlers.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/stats/handlers.go rename to vendor/google.golang.org/grpc/stats/handlers.go diff --git a/_vendor/src/google.golang.org/grpc/stats/stats.go b/vendor/google.golang.org/grpc/stats/stats.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/stats/stats.go rename to vendor/google.golang.org/grpc/stats/stats.go diff --git a/vendor/google.golang.org/grpc/status/BUILD.bazel b/vendor/google.golang.org/grpc/status/BUILD.bazel new file mode 100644 index 0000000000000..9b4dede32e6f2 --- /dev/null +++ b/vendor/google.golang.org/grpc/status/BUILD.bazel @@ -0,0 +1,12 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["status.go"], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/google.golang.org/genproto/googleapis/rpc/status:go_default_library", + "//vendor/google.golang.org/grpc/codes:go_default_library", + ], +) diff --git a/_vendor/src/google.golang.org/grpc/status/status.go b/vendor/google.golang.org/grpc/status/status.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/status/status.go rename to vendor/google.golang.org/grpc/status/status.go diff --git a/_vendor/src/google.golang.org/grpc/stream.go b/vendor/google.golang.org/grpc/stream.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/stream.go rename to vendor/google.golang.org/grpc/stream.go diff --git a/vendor/google.golang.org/grpc/tap/BUILD.bazel b/vendor/google.golang.org/grpc/tap/BUILD.bazel new file mode 100644 index 0000000000000..2364b3e0d4c23 --- /dev/null +++ b/vendor/google.golang.org/grpc/tap/BUILD.bazel @@ -0,0 +1,8 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["tap.go"], + visibility = ["//visibility:public"], + deps = ["//vendor/golang.org/x/net/context:go_default_library"], +) diff --git a/_vendor/src/google.golang.org/grpc/tap/tap.go b/vendor/google.golang.org/grpc/tap/tap.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/tap/tap.go rename to vendor/google.golang.org/grpc/tap/tap.go diff --git a/_vendor/src/google.golang.org/grpc/trace.go b/vendor/google.golang.org/grpc/trace.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/trace.go rename to vendor/google.golang.org/grpc/trace.go diff --git a/vendor/google.golang.org/grpc/transport/BUILD.bazel b/vendor/google.golang.org/grpc/transport/BUILD.bazel new file mode 100644 index 0000000000000..d72cd97d4d521 --- /dev/null +++ b/vendor/google.golang.org/grpc/transport/BUILD.bazel @@ -0,0 +1,31 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = [ + "control.go", + "go17.go", + "handler_server.go", + "http2_client.go", + "http2_server.go", + "http_util.go", + "transport.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//vendor/github.com/golang/protobuf/proto:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + "//vendor/golang.org/x/net/http2:go_default_library", + "//vendor/golang.org/x/net/http2/hpack:go_default_library", + "//vendor/google.golang.org/genproto/googleapis/rpc/status:go_default_library", + "//vendor/google.golang.org/grpc/codes:go_default_library", + "//vendor/google.golang.org/grpc/credentials:go_default_library", + "//vendor/google.golang.org/grpc/grpclog:go_default_library", + "//vendor/google.golang.org/grpc/keepalive:go_default_library", + "//vendor/google.golang.org/grpc/metadata:go_default_library", + "//vendor/google.golang.org/grpc/peer:go_default_library", + "//vendor/google.golang.org/grpc/stats:go_default_library", + "//vendor/google.golang.org/grpc/status:go_default_library", + "//vendor/google.golang.org/grpc/tap:go_default_library", + ], +) diff --git a/_vendor/src/google.golang.org/grpc/transport/control.go b/vendor/google.golang.org/grpc/transport/control.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/transport/control.go rename to vendor/google.golang.org/grpc/transport/control.go diff --git a/_vendor/src/google.golang.org/grpc/transport/go16.go b/vendor/google.golang.org/grpc/transport/go16.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/transport/go16.go rename to vendor/google.golang.org/grpc/transport/go16.go diff --git a/_vendor/src/google.golang.org/grpc/transport/go17.go b/vendor/google.golang.org/grpc/transport/go17.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/transport/go17.go rename to vendor/google.golang.org/grpc/transport/go17.go diff --git a/_vendor/src/google.golang.org/grpc/transport/handler_server.go b/vendor/google.golang.org/grpc/transport/handler_server.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/transport/handler_server.go rename to vendor/google.golang.org/grpc/transport/handler_server.go diff --git a/_vendor/src/google.golang.org/grpc/transport/http2_client.go b/vendor/google.golang.org/grpc/transport/http2_client.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/transport/http2_client.go rename to vendor/google.golang.org/grpc/transport/http2_client.go diff --git a/_vendor/src/google.golang.org/grpc/transport/http2_server.go b/vendor/google.golang.org/grpc/transport/http2_server.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/transport/http2_server.go rename to vendor/google.golang.org/grpc/transport/http2_server.go diff --git a/_vendor/src/google.golang.org/grpc/transport/http_util.go b/vendor/google.golang.org/grpc/transport/http_util.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/transport/http_util.go rename to vendor/google.golang.org/grpc/transport/http_util.go diff --git a/_vendor/src/google.golang.org/grpc/transport/transport.go b/vendor/google.golang.org/grpc/transport/transport.go similarity index 100% rename from _vendor/src/google.golang.org/grpc/transport/transport.go rename to vendor/google.golang.org/grpc/transport/transport.go From 03f37ba9fd22a7ba79d950c78909c4b239a8c273 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sat, 24 Jun 2017 11:06:25 +0800 Subject: [PATCH 02/21] autogenerate build file --- .bazelrc | 1 + .gitignore | 2 + BUILD.bazel | 82 ++++++++++++ Makefile | 173 +------------------------ WORKSPACE | 1 + ast/BUILD.bazel | 36 +++++ build/root/.bazelrc | 9 ++ build/root/Makefile | 172 ++++++++++++++++++++++++ build/root/WORKSPACE | 8 ++ cmd/benchdb/BUILD.bazel | 20 +++ cmd/benchfilesort/BUILD.bazel | 21 +++ cmd/benchkv/BUILD.bazel | 20 +++ cmd/benchraw/BUILD.bazel | 18 +++ context/BUILD.bazel | 13 ++ ddl/BUILD.bazel | 127 ++++++++++++++++++ distsql/BUILD.bazel | 36 +++++ distsql/xeval/BUILD.bazel | 46 +++++++ domain/BUILD.bazel | 50 +++++++ executor/BUILD.bazel | 130 +++++++++++++++++++ expression/BUILD.bazel | 125 ++++++++++++++++++ hack/lib/version.sh | 145 +++++++++++++++++++++ hack/print-workspace-status.sh | 47 +++++++ infoschema/BUILD.bazel | 49 +++++++ inspectkv/BUILD.bazel | 43 ++++++ kv/BUILD.bazel | 56 ++++++++ meta/BUILD.bazel | 28 ++++ meta/autoid/BUILD.bazel | 28 ++++ model/BUILD.bazel | 26 ++++ mysql/BUILD.bazel | 32 +++++ parser/BUILD.bazel | 39 ++++++ parser/goyacc/BUILD.bazel | 20 +++ parser/opcode/BUILD.bazel | 13 ++ perfschema/BUILD.bazel | 52 ++++++++ plan/BUILD.bazel | 144 ++++++++++++++++++++ privilege/BUILD.bazel | 12 ++ privilege/privileges/BUILD.bazel | 43 ++++++ server/BUILD.bazel | 75 +++++++++++ server/http_status.go | 4 +- server/server_test.go | 9 +- sessionctx/BUILD.bazel | 22 ++++ sessionctx/binloginfo/BUILD.bazel | 38 ++++++ sessionctx/variable/BUILD.bazel | 39 ++++++ sessionctx/varsutil/BUILD.bazel | 27 ++++ statistics/BUILD.bazel | 70 ++++++++++ store/BUILD.bazel | 16 +++ store/localstore/BUILD.bazel | 64 +++++++++ store/localstore/boltdb/BUILD.bazel | 24 ++++ store/localstore/engine/BUILD.bazel | 8 ++ store/localstore/goleveldb/BUILD.bazel | 26 ++++ store/tikv/BUILD.bazel | 99 ++++++++++++++ store/tikv/mock-tikv/BUILD.bazel | 65 ++++++++++ store/tikv/oracle/BUILD.bazel | 8 ++ store/tikv/oracle/oracles/BUILD.bazel | 24 ++++ store/tikv/tikvrpc/BUILD.bazel | 12 ++ structure/BUILD.bazel | 32 +++++ table/BUILD.bazel | 39 ++++++ table/tables/BUILD.bazel | 61 +++++++++ tablecodec/BUILD.bazel | 32 +++++ terror/BUILD.bazel | 23 ++++ tidb-server/BUILD.bazel | 33 +++++ util/BUILD.bazel | 43 ++++++ util/arena/BUILD.bazel | 13 ++ util/bytespool/BUILD.bazel | 14 ++ util/charset/BUILD.bazel | 30 +++++ util/codec/BUILD.bazel | 38 ++++++ util/encrypt/BUILD.bazel | 18 +++ util/filesort/BUILD.bazel | 25 ++++ util/format/BUILD.bazel | 17 +++ util/hack/BUILD.bazel | 13 ++ util/mock/BUILD.bazel | 25 ++++ util/mvmap/BUILD.bazel | 16 +++ util/parser/BUILD.bazel | 22 ++++ util/printer/BUILD.bazel | 21 +++ util/printer/printer.go | 13 +- util/ranger/BUILD.bazel | 41 ++++++ util/segmentmap/BUILD.bazel | 18 +++ util/sqlexec/BUILD.bazel | 11 ++ util/stringutil/BUILD.bazel | 18 +++ util/testkit/BUILD.bazel | 15 +++ util/testleak/BUILD.bazel | 8 ++ util/testutil/BUILD.bazel | 22 ++++ util/types/BUILD.bazel | 68 ++++++++++ util/types/json/BUILD.bazel | 31 +++++ 83 files changed, 3069 insertions(+), 188 deletions(-) create mode 120000 .bazelrc create mode 100644 BUILD.bazel mode change 100644 => 120000 Makefile create mode 120000 WORKSPACE create mode 100644 ast/BUILD.bazel create mode 100644 build/root/.bazelrc create mode 100644 build/root/Makefile create mode 100644 build/root/WORKSPACE create mode 100644 cmd/benchdb/BUILD.bazel create mode 100644 cmd/benchfilesort/BUILD.bazel create mode 100644 cmd/benchkv/BUILD.bazel create mode 100644 cmd/benchraw/BUILD.bazel create mode 100644 context/BUILD.bazel create mode 100644 ddl/BUILD.bazel create mode 100644 distsql/BUILD.bazel create mode 100644 distsql/xeval/BUILD.bazel create mode 100644 domain/BUILD.bazel create mode 100644 executor/BUILD.bazel create mode 100644 expression/BUILD.bazel create mode 100644 hack/lib/version.sh create mode 100644 hack/print-workspace-status.sh create mode 100644 infoschema/BUILD.bazel create mode 100644 inspectkv/BUILD.bazel create mode 100644 kv/BUILD.bazel create mode 100644 meta/BUILD.bazel create mode 100644 meta/autoid/BUILD.bazel create mode 100644 model/BUILD.bazel create mode 100644 mysql/BUILD.bazel create mode 100644 parser/BUILD.bazel create mode 100644 parser/goyacc/BUILD.bazel create mode 100644 parser/opcode/BUILD.bazel create mode 100644 perfschema/BUILD.bazel create mode 100644 plan/BUILD.bazel create mode 100644 privilege/BUILD.bazel create mode 100644 privilege/privileges/BUILD.bazel create mode 100644 server/BUILD.bazel create mode 100644 sessionctx/BUILD.bazel create mode 100644 sessionctx/binloginfo/BUILD.bazel create mode 100644 sessionctx/variable/BUILD.bazel create mode 100644 sessionctx/varsutil/BUILD.bazel create mode 100644 statistics/BUILD.bazel create mode 100644 store/BUILD.bazel create mode 100644 store/localstore/BUILD.bazel create mode 100644 store/localstore/boltdb/BUILD.bazel create mode 100644 store/localstore/engine/BUILD.bazel create mode 100644 store/localstore/goleveldb/BUILD.bazel create mode 100644 store/tikv/BUILD.bazel create mode 100644 store/tikv/mock-tikv/BUILD.bazel create mode 100644 store/tikv/oracle/BUILD.bazel create mode 100644 store/tikv/oracle/oracles/BUILD.bazel create mode 100644 store/tikv/tikvrpc/BUILD.bazel create mode 100644 structure/BUILD.bazel create mode 100644 table/BUILD.bazel create mode 100644 table/tables/BUILD.bazel create mode 100644 tablecodec/BUILD.bazel create mode 100644 terror/BUILD.bazel create mode 100644 tidb-server/BUILD.bazel create mode 100644 util/BUILD.bazel create mode 100644 util/arena/BUILD.bazel create mode 100644 util/bytespool/BUILD.bazel create mode 100644 util/charset/BUILD.bazel create mode 100644 util/codec/BUILD.bazel create mode 100644 util/encrypt/BUILD.bazel create mode 100644 util/filesort/BUILD.bazel create mode 100644 util/format/BUILD.bazel create mode 100644 util/hack/BUILD.bazel create mode 100644 util/mock/BUILD.bazel create mode 100644 util/mvmap/BUILD.bazel create mode 100644 util/parser/BUILD.bazel create mode 100644 util/printer/BUILD.bazel create mode 100644 util/ranger/BUILD.bazel create mode 100644 util/segmentmap/BUILD.bazel create mode 100644 util/sqlexec/BUILD.bazel create mode 100644 util/stringutil/BUILD.bazel create mode 100644 util/testkit/BUILD.bazel create mode 100644 util/testleak/BUILD.bazel create mode 100644 util/testutil/BUILD.bazel create mode 100644 util/types/BUILD.bazel create mode 100644 util/types/json/BUILD.bazel diff --git a/.bazelrc b/.bazelrc new file mode 120000 index 0000000000000..4de3dbc6ba57e --- /dev/null +++ b/.bazelrc @@ -0,0 +1 @@ +build/root/.bazelrc \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6b1aa1a4443a3..292192a1746de 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ tags temp_parser_file y.output profile.coverprofile + +bazel* diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 0000000000000..b293405a5e0dd --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,82 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_prefix", "go_test") + +go_prefix("github.com/pingcap/tidb") + +go_library( + name = "go_default_library", + srcs = [ + "bootstrap.go", + "metrics.go", + "session.go", + "tidb.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//ast:go_default_library", + "//context:go_default_library", + "//ddl:go_default_library", + "//domain:go_default_library", + "//executor:go_default_library", + "//infoschema:go_default_library", + "//kv:go_default_library", + "//meta:go_default_library", + "//mysql:go_default_library", + "//parser:go_default_library", + "//perfschema:go_default_library", + "//privilege:go_default_library", + "//privilege/privileges:go_default_library", + "//sessionctx:go_default_library", + "//sessionctx/binloginfo:go_default_library", + "//sessionctx/variable:go_default_library", + "//sessionctx/varsutil:go_default_library", + "//statistics:go_default_library", + "//store/localstore:go_default_library", + "//store/localstore/engine:go_default_library", + "//store/localstore/goleveldb:go_default_library", + "//store/tikv/oracle:go_default_library", + "//terror:go_default_library", + "//util:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/ngaut/pools:go_default_library", + "//vendor/github.com/pingcap/tipb/go-binlog:go_default_library", + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = [ + "bench_test.go", + "bootstrap_test.go", + "session_test.go", + "tidb_test.go", + ], + library = ":go_default_library", + deps = [ + "//ast:go_default_library", + "//context:go_default_library", + "//domain:go_default_library", + "//executor:go_default_library", + "//kv:go_default_library", + "//meta:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//parser:go_default_library", + "//plan:go_default_library", + "//privilege/privileges:go_default_library", + "//sessionctx:go_default_library", + "//sessionctx/variable:go_default_library", + "//store/localstore:go_default_library", + "//table/tables:go_default_library", + "//terror:go_default_library", + "//util:go_default_library", + "//util/testleak:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + ], +) diff --git a/Makefile b/Makefile deleted file mode 100644 index 41a134a11dc26..0000000000000 --- a/Makefile +++ /dev/null @@ -1,172 +0,0 @@ -### Makefile for tidb - -GOPATH ?= $(shell go env GOPATH) - -# Ensure GOPATH is set before running build process. -ifeq "$(GOPATH)" "" - $(error Please set the environment variable GOPATH before running `make`) -endif - -CURDIR := $(shell pwd) -path_to_add := $(addsuffix /bin,$(subst :,/bin:,$(CURDIR)/_vendor:$(GOPATH))) -export PATH := $(path_to_add):$(PATH) - -GO := GO15VENDOREXPERIMENT="1" go -GOBUILD := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=0 $(GO) build -GOTEST := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) test -OVERALLS := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 overalls -GOVERALLS := goveralls - -ARCH := "`uname -s`" -LINUX := "Linux" -MAC := "Darwin" -PACKAGES := $$(go list ./...| grep -vE 'vendor') -FILES := $$(find . -name '*.go' | grep -vE 'vendor') - -LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBBuildTS=$(shell date -u '+%Y-%m-%d %I:%M:%S')" -LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBGitHash=$(shell git rev-parse HEAD)" - -TARGET = "" - -.PHONY: all build update parser clean todo test gotest interpreter server dev benchkv benchraw check parserlib checklist - -default: server buildsucc - -buildsucc: - @echo Build TiDB Server successfully! - -all: dev server benchkv - -dev: checklist parserlib build benchkv test check - -build: - $(GOBUILD) - -TEMP_FILE = temp_parser_file - -goyacc: - $(GOBUILD) -o bin/goyacc parser/goyacc/main.go - -parser: goyacc - bin/goyacc -o /dev/null -xegen $(TEMP_FILE) parser/parser.y - bin/goyacc -o parser/parser.go -xe $(TEMP_FILE) parser/parser.y 2>&1 | egrep "(shift|reduce)/reduce" | awk '{print} END {if (NR > 0) {print "Find conflict in parser.y. Please check y.output for more information."; system("rm -f $(TEMP_FILE)"); exit 1;}}' - rm -f $(TEMP_FILE) - rm -f y.output - - @if [ $(ARCH) = $(LINUX) ]; \ - then \ - sed -i -e 's|//line.*||' -e 's/yyEofCode/yyEOFCode/' parser/parser.go; \ - elif [ $(ARCH) = $(MAC) ]; \ - then \ - /usr/bin/sed -i "" 's|//line.*||' parser/parser.go; \ - /usr/bin/sed -i "" 's/yyEofCode/yyEOFCode/' parser/parser.go; \ - fi - - @awk 'BEGIN{print "// Code generated by goyacc"} {print $0}' parser/parser.go > tmp_parser.go && mv tmp_parser.go parser/parser.go; - -parserlib: parser/parser.go - -parser/parser.go: parser/parser.y - make parser - -check: - bash gitcookie.sh - go get github.com/golang/lint/golint - - @echo "vet" - @ go tool vet $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' - @echo "vet --shadow" - @ go tool vet --shadow $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' - @echo "golint" - @ golint ./... 2>&1 | grep -vE 'context\.Context|LastInsertId|NewLexer|\.pb\.go' | awk '{print} END{if(NR>0) {exit 1}}' - @echo "gofmt (simplify)" - @ gofmt -s -l -w $(FILES) 2>&1 | grep -v "parser/parser.go" | awk '{print} END{if(NR>0) {exit 1}}' - -goword: - go get github.com/chzchzchz/goword - @echo "goword" - @ goword $(FILES) | awk '{print} END{if(NR>0) {exit 1}}' - -errcheck: - go get github.com/kisielk/errcheck - errcheck -blank $(PACKAGES) - -clean: - $(GO) clean -i ./... - rm -rf *.out - -todo: - @grep -n ^[[:space:]]*_[[:space:]]*=[[:space:]][[:alpha:]][[:alnum:]]* */*.go parser/parser.y || true - @grep -n TODO */*.go parser/parser.y || true - @grep -n BUG */*.go parser/parser.y || true - @grep -n println */*.go parser/parser.y || true - -test: checklist gotest - -gotest: parserlib -ifeq ("$(TRAVIS_COVERAGE)", "1") - @echo "Running in TRAVIS_COVERAGE mode." - @export log_level=error; \ - go get github.com/go-playground/overalls - go get github.com/mattn/goveralls - $(OVERALLS) -project=github.com/pingcap/tidb -covermode=count -ignore='.git,_vendor' - $(GOVERALLS) -service=travis-ci -coverprofile=overalls.coverprofile -else - @echo "Running in native mode." - @export log_level=error; \ - $(GOTEST) -cover $(PACKAGES) -endif - -race: parserlib - @export log_level=debug; \ - $(GOTEST) -race $(PACKAGES) - -leak: parserlib - @export log_level=debug; \ - for dir in $(PACKAGES); do \ - echo $$dir; \ - $(GOTEST) -tags leak $$dir | awk 'END{if($$1=="FAIL") {exit 1}}' || exit 1; \ - done; - -tikv_integration_test: parserlib - $(GOTEST) ./store/tikv/. -with-tikv=true - -RACE_FLAG = -ifeq ("$(WITH_RACE)", "1") - RACE_FLAG = -race - GOBUILD = GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) build -endif - -server: parserlib -ifeq ($(TARGET), "") - $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS)' -o bin/tidb-server tidb-server/main.go -else - $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS)' -o '$(TARGET)' tidb-server/main.go -endif - -benchkv: - $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchkv cmd/benchkv/main.go - -benchraw: - $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchraw cmd/benchraw/main.go - -benchdb: - $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchdb cmd/benchdb/main.go - -update: - which glide >/dev/null || curl https://glide.sh/get | sh - which glide-vc || go get -v -u github.com/sgotti/glide-vc - rm -r vendor && mv _vendor/src vendor || true - rm -rf _vendor -ifdef PKG - glide get -s -v --skip-test ${PKG} -else - glide update -s -v -u --skip-test -endif - @echo "removing test files" - glide vc --only-code --no-tests - mkdir -p _vendor - mv vendor _vendor/src - -checklist: - cat checklist.md diff --git a/Makefile b/Makefile new file mode 120000 index 0000000000000..613e083f0bfae --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +build/root/Makefile \ No newline at end of file diff --git a/WORKSPACE b/WORKSPACE new file mode 120000 index 0000000000000..7e8131a549fa7 --- /dev/null +++ b/WORKSPACE @@ -0,0 +1 @@ +build/root/WORKSPACE \ No newline at end of file diff --git a/ast/BUILD.bazel b/ast/BUILD.bazel new file mode 100644 index 0000000000000..4a13b39059838 --- /dev/null +++ b/ast/BUILD.bazel @@ -0,0 +1,36 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = [ + "ast.go", + "base.go", + "ddl.go", + "dml.go", + "expressions.go", + "flag.go", + "functions.go", + "misc.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//context:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//parser/opcode:go_default_library", + "//util/types:go_default_library", + ], +) + +go_test( + name = "go_default_xtest", + srcs = [ + "flag_test.go", + "misc_test.go", + ], + deps = [ + ":go_default_library", + "//parser:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + ], +) diff --git a/build/root/.bazelrc b/build/root/.bazelrc new file mode 100644 index 0000000000000..cf1a6ee82ffb6 --- /dev/null +++ b/build/root/.bazelrc @@ -0,0 +1,9 @@ +# Show us information about failures. +build --verbose_failures +test --test_output=errors + +# Include git version info +#build --workspace_status_command hack/print-workspace-status.sh + +# Make /tmp hermetic +build --sandbox_tmpfs_path=/tmp diff --git a/build/root/Makefile b/build/root/Makefile new file mode 100644 index 0000000000000..41a134a11dc26 --- /dev/null +++ b/build/root/Makefile @@ -0,0 +1,172 @@ +### Makefile for tidb + +GOPATH ?= $(shell go env GOPATH) + +# Ensure GOPATH is set before running build process. +ifeq "$(GOPATH)" "" + $(error Please set the environment variable GOPATH before running `make`) +endif + +CURDIR := $(shell pwd) +path_to_add := $(addsuffix /bin,$(subst :,/bin:,$(CURDIR)/_vendor:$(GOPATH))) +export PATH := $(path_to_add):$(PATH) + +GO := GO15VENDOREXPERIMENT="1" go +GOBUILD := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=0 $(GO) build +GOTEST := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) test +OVERALLS := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 overalls +GOVERALLS := goveralls + +ARCH := "`uname -s`" +LINUX := "Linux" +MAC := "Darwin" +PACKAGES := $$(go list ./...| grep -vE 'vendor') +FILES := $$(find . -name '*.go' | grep -vE 'vendor') + +LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBBuildTS=$(shell date -u '+%Y-%m-%d %I:%M:%S')" +LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBGitHash=$(shell git rev-parse HEAD)" + +TARGET = "" + +.PHONY: all build update parser clean todo test gotest interpreter server dev benchkv benchraw check parserlib checklist + +default: server buildsucc + +buildsucc: + @echo Build TiDB Server successfully! + +all: dev server benchkv + +dev: checklist parserlib build benchkv test check + +build: + $(GOBUILD) + +TEMP_FILE = temp_parser_file + +goyacc: + $(GOBUILD) -o bin/goyacc parser/goyacc/main.go + +parser: goyacc + bin/goyacc -o /dev/null -xegen $(TEMP_FILE) parser/parser.y + bin/goyacc -o parser/parser.go -xe $(TEMP_FILE) parser/parser.y 2>&1 | egrep "(shift|reduce)/reduce" | awk '{print} END {if (NR > 0) {print "Find conflict in parser.y. Please check y.output for more information."; system("rm -f $(TEMP_FILE)"); exit 1;}}' + rm -f $(TEMP_FILE) + rm -f y.output + + @if [ $(ARCH) = $(LINUX) ]; \ + then \ + sed -i -e 's|//line.*||' -e 's/yyEofCode/yyEOFCode/' parser/parser.go; \ + elif [ $(ARCH) = $(MAC) ]; \ + then \ + /usr/bin/sed -i "" 's|//line.*||' parser/parser.go; \ + /usr/bin/sed -i "" 's/yyEofCode/yyEOFCode/' parser/parser.go; \ + fi + + @awk 'BEGIN{print "// Code generated by goyacc"} {print $0}' parser/parser.go > tmp_parser.go && mv tmp_parser.go parser/parser.go; + +parserlib: parser/parser.go + +parser/parser.go: parser/parser.y + make parser + +check: + bash gitcookie.sh + go get github.com/golang/lint/golint + + @echo "vet" + @ go tool vet $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' + @echo "vet --shadow" + @ go tool vet --shadow $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' + @echo "golint" + @ golint ./... 2>&1 | grep -vE 'context\.Context|LastInsertId|NewLexer|\.pb\.go' | awk '{print} END{if(NR>0) {exit 1}}' + @echo "gofmt (simplify)" + @ gofmt -s -l -w $(FILES) 2>&1 | grep -v "parser/parser.go" | awk '{print} END{if(NR>0) {exit 1}}' + +goword: + go get github.com/chzchzchz/goword + @echo "goword" + @ goword $(FILES) | awk '{print} END{if(NR>0) {exit 1}}' + +errcheck: + go get github.com/kisielk/errcheck + errcheck -blank $(PACKAGES) + +clean: + $(GO) clean -i ./... + rm -rf *.out + +todo: + @grep -n ^[[:space:]]*_[[:space:]]*=[[:space:]][[:alpha:]][[:alnum:]]* */*.go parser/parser.y || true + @grep -n TODO */*.go parser/parser.y || true + @grep -n BUG */*.go parser/parser.y || true + @grep -n println */*.go parser/parser.y || true + +test: checklist gotest + +gotest: parserlib +ifeq ("$(TRAVIS_COVERAGE)", "1") + @echo "Running in TRAVIS_COVERAGE mode." + @export log_level=error; \ + go get github.com/go-playground/overalls + go get github.com/mattn/goveralls + $(OVERALLS) -project=github.com/pingcap/tidb -covermode=count -ignore='.git,_vendor' + $(GOVERALLS) -service=travis-ci -coverprofile=overalls.coverprofile +else + @echo "Running in native mode." + @export log_level=error; \ + $(GOTEST) -cover $(PACKAGES) +endif + +race: parserlib + @export log_level=debug; \ + $(GOTEST) -race $(PACKAGES) + +leak: parserlib + @export log_level=debug; \ + for dir in $(PACKAGES); do \ + echo $$dir; \ + $(GOTEST) -tags leak $$dir | awk 'END{if($$1=="FAIL") {exit 1}}' || exit 1; \ + done; + +tikv_integration_test: parserlib + $(GOTEST) ./store/tikv/. -with-tikv=true + +RACE_FLAG = +ifeq ("$(WITH_RACE)", "1") + RACE_FLAG = -race + GOBUILD = GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) build +endif + +server: parserlib +ifeq ($(TARGET), "") + $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS)' -o bin/tidb-server tidb-server/main.go +else + $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS)' -o '$(TARGET)' tidb-server/main.go +endif + +benchkv: + $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchkv cmd/benchkv/main.go + +benchraw: + $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchraw cmd/benchraw/main.go + +benchdb: + $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchdb cmd/benchdb/main.go + +update: + which glide >/dev/null || curl https://glide.sh/get | sh + which glide-vc || go get -v -u github.com/sgotti/glide-vc + rm -r vendor && mv _vendor/src vendor || true + rm -rf _vendor +ifdef PKG + glide get -s -v --skip-test ${PKG} +else + glide update -s -v -u --skip-test +endif + @echo "removing test files" + glide vc --only-code --no-tests + mkdir -p _vendor + mv vendor _vendor/src + +checklist: + cat checklist.md diff --git a/build/root/WORKSPACE b/build/root/WORKSPACE new file mode 100644 index 0000000000000..58ccca4f2a68d --- /dev/null +++ b/build/root/WORKSPACE @@ -0,0 +1,8 @@ +git_repository( + name = "io_bazel_rules_go", + remote = "https://github.com/bazelbuild/rules_go.git", + tag = "0.5.0", +) +load("@io_bazel_rules_go//go:def.bzl", "go_repositories") + +go_repositories() diff --git a/cmd/benchdb/BUILD.bazel b/cmd/benchdb/BUILD.bazel new file mode 100644 index 0000000000000..998d177e1ef69 --- /dev/null +++ b/cmd/benchdb/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") + +go_library( + name = "go_default_library", + srcs = ["main.go"], + visibility = ["//visibility:private"], + deps = [ + "//:go_default_library", + "//kv:go_default_library", + "//store/tikv:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) + +go_binary( + name = "benchdb", + library = ":go_default_library", + visibility = ["//visibility:public"], +) diff --git a/cmd/benchfilesort/BUILD.bazel b/cmd/benchfilesort/BUILD.bazel new file mode 100644 index 0000000000000..318ac0a922c51 --- /dev/null +++ b/cmd/benchfilesort/BUILD.bazel @@ -0,0 +1,21 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") + +go_library( + name = "go_default_library", + srcs = ["main.go"], + visibility = ["//visibility:private"], + deps = [ + "//sessionctx/variable:go_default_library", + "//util/codec:go_default_library", + "//util/filesort:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + ], +) + +go_binary( + name = "benchfilesort", + library = ":go_default_library", + visibility = ["//visibility:public"], +) diff --git a/cmd/benchkv/BUILD.bazel b/cmd/benchkv/BUILD.bazel new file mode 100644 index 0000000000000..e7f9796af9ca9 --- /dev/null +++ b/cmd/benchkv/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") + +go_library( + name = "go_default_library", + srcs = ["main.go"], + visibility = ["//visibility:private"], + deps = [ + "//kv:go_default_library", + "//store/tikv:go_default_library", + "//vendor/github.com/go-sql-driver/mysql:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + ], +) + +go_binary( + name = "benchkv", + library = ":go_default_library", + visibility = ["//visibility:public"], +) diff --git a/cmd/benchraw/BUILD.bazel b/cmd/benchraw/BUILD.bazel new file mode 100644 index 0000000000000..d4f4c94f89c57 --- /dev/null +++ b/cmd/benchraw/BUILD.bazel @@ -0,0 +1,18 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") + +go_library( + name = "go_default_library", + srcs = ["main.go"], + visibility = ["//visibility:private"], + deps = [ + "//store/tikv:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + ], +) + +go_binary( + name = "benchraw", + library = ":go_default_library", + visibility = ["//visibility:public"], +) diff --git a/context/BUILD.bazel b/context/BUILD.bazel new file mode 100644 index 0000000000000..6c39e21c7f2cf --- /dev/null +++ b/context/BUILD.bazel @@ -0,0 +1,13 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["context.go"], + visibility = ["//visibility:public"], + deps = [ + "//kv:go_default_library", + "//sessionctx/variable:go_default_library", + "//util:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) diff --git a/ddl/BUILD.bazel b/ddl/BUILD.bazel new file mode 100644 index 0000000000000..0c2b90dd8c387 --- /dev/null +++ b/ddl/BUILD.bazel @@ -0,0 +1,127 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = [ + "bg_worker.go", + "callback.go", + "column.go", + "ddl.go", + "ddl_api.go", + "ddl_worker.go", + "foreign_key.go", + "generated_column.go", + "index.go", + "metrics.go", + "mock.go", + "owner_manager.go", + "reorg.go", + "schema.go", + "stat.go", + "syncer.go", + "table.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//ast:go_default_library", + "//context:go_default_library", + "//expression:go_default_library", + "//infoschema:go_default_library", + "//inspectkv:go_default_library", + "//kv:go_default_library", + "//meta:go_default_library", + "//meta/autoid:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//sessionctx/binloginfo:go_default_library", + "//sessionctx/variable:go_default_library", + "//table:go_default_library", + "//table/tables:go_default_library", + "//tablecodec:go_default_library", + "//terror:go_default_library", + "//util:go_default_library", + "//util/charset:go_default_library", + "//util/mock:go_default_library", + "//util/stringutil:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/coreos/etcd/clientv3:go_default_library", + "//vendor/github.com/coreos/etcd/clientv3/concurrency:go_default_library", + "//vendor/github.com/coreos/etcd/mvcc/mvccpb:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/github.com/twinj/uuid:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = [ + "bg_worker_test.go", + "callback_test.go", + "column_change_test.go", + "column_test.go", + "ddl_test.go", + "ddl_worker_test.go", + "foreign_key_test.go", + "index_change_test.go", + "reorg_test.go", + "schema_test.go", + "stat_test.go", + "table_test.go", + ], + library = ":go_default_library", + deps = [ + "//ast:go_default_library", + "//context:go_default_library", + "//infoschema:go_default_library", + "//kv:go_default_library", + "//meta:go_default_library", + "//meta/autoid:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//parser:go_default_library", + "//store/localstore:go_default_library", + "//store/localstore/goleveldb:go_default_library", + "//table:go_default_library", + "//table/tables:go_default_library", + "//tablecodec:go_default_library", + "//terror:go_default_library", + "//util/mock:go_default_library", + "//util/testleak:go_default_library", + "//util/testutil:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) + +go_test( + name = "go_default_xtest", + srcs = ["ddl_db_test.go"], + deps = [ + ":go_default_library", + "//:go_default_library", + "//context:go_default_library", + "//domain:go_default_library", + "//infoschema:go_default_library", + "//kv:go_default_library", + "//meta:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//sessionctx:go_default_library", + "//store/localstore:go_default_library", + "//table:go_default_library", + "//table/tables:go_default_library", + "//tablecodec:go_default_library", + "//terror:go_default_library", + "//util/testkit:go_default_library", + "//util/testleak:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + ], +) diff --git a/distsql/BUILD.bazel b/distsql/BUILD.bazel new file mode 100644 index 0000000000000..04603eb520131 --- /dev/null +++ b/distsql/BUILD.bazel @@ -0,0 +1,36 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = [ + "distsql.go", + "metrics.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//kv:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//terror:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = ["distsql_test.go"], + library = ":go_default_library", + deps = [ + "//model:go_default_library", + "//mysql:go_default_library", + "//util/testleak:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) diff --git a/distsql/xeval/BUILD.bazel b/distsql/xeval/BUILD.bazel new file mode 100644 index 0000000000000..0f41d979fe3ff --- /dev/null +++ b/distsql/xeval/BUILD.bazel @@ -0,0 +1,46 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = [ + "eval.go", + "eval_arithmetic_ops.go", + "eval_bit_ops.go", + "eval_compare_ops.go", + "eval_control_funcs.go", + "eval_data_type.go", + "eval_json.go", + "eval_logic_ops.go", + "eval_other_funcs.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//distsql:go_default_library", + "//expression:go_default_library", + "//mysql:go_default_library", + "//sessionctx/variable:go_default_library", + "//tablecodec:go_default_library", + "//terror:go_default_library", + "//util/codec:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = [ + "eval_control_funcs_test.go", + "eval_other_funcs_test.go", + "eval_test.go", + ], + library = ":go_default_library", + deps = [ + "//sessionctx/variable:go_default_library", + "//util/codec:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", + ], +) diff --git a/domain/BUILD.bazel b/domain/BUILD.bazel new file mode 100644 index 0000000000000..7b9a70e4ce1c8 --- /dev/null +++ b/domain/BUILD.bazel @@ -0,0 +1,50 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = [ + "domain.go", + "metrics.go", + "schema_validator.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//context:go_default_library", + "//ddl:go_default_library", + "//infoschema:go_default_library", + "//kv:go_default_library", + "//meta:go_default_library", + "//model:go_default_library", + "//perfschema:go_default_library", + "//privilege/privileges:go_default_library", + "//sessionctx/variable:go_default_library", + "//statistics:go_default_library", + "//terror:go_default_library", + "//vendor/github.com/coreos/etcd/clientv3:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/ngaut/pools:go_default_library", + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = [ + "domain_test.go", + "schema_validator_test.go", + ], + library = ":go_default_library", + deps = [ + "//ast:go_default_library", + "//model:go_default_library", + "//store/localstore:go_default_library", + "//store/localstore/goleveldb:go_default_library", + "//util/mock:go_default_library", + "//util/testleak:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/pools:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + ], +) diff --git a/executor/BUILD.bazel b/executor/BUILD.bazel new file mode 100644 index 0000000000000..0d34595d4a374 --- /dev/null +++ b/executor/BUILD.bazel @@ -0,0 +1,130 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = [ + "adapter.go", + "aggregate.go", + "analyze.go", + "builder.go", + "compiler.go", + "ddl.go", + "distsql.go", + "executor.go", + "explain.go", + "grant.go", + "join.go", + "merge_join.go", + "metrics.go", + "new_distsql.go", + "new_join.go", + "prepared.go", + "revoke.go", + "set.go", + "show.go", + "simple.go", + "sort.go", + "union_scan.go", + "write.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//ast:go_default_library", + "//context:go_default_library", + "//distsql:go_default_library", + "//distsql/xeval:go_default_library", + "//expression:go_default_library", + "//infoschema:go_default_library", + "//inspectkv:go_default_library", + "//kv:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//parser:go_default_library", + "//plan:go_default_library", + "//privilege:go_default_library", + "//sessionctx:go_default_library", + "//sessionctx/variable:go_default_library", + "//sessionctx/varsutil:go_default_library", + "//statistics:go_default_library", + "//table:go_default_library", + "//tablecodec:go_default_library", + "//terror:go_default_library", + "//util:go_default_library", + "//util/charset:go_default_library", + "//util/codec:go_default_library", + "//util/mvmap:go_default_library", + "//util/ranger:go_default_library", + "//util/sqlexec:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", + "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = ["executor_pkg_test.go"], + library = ":go_default_library", + deps = [ + "//kv:go_default_library", + "//tablecodec:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + ], +) + +go_test( + name = "go_default_xtest", + srcs = [ + "aggregate_test.go", + "analyze_test.go", + "ddl_test.go", + "distsql_test.go", + "executor_test.go", + "explain_test.go", + "grant_test.go", + "join_test.go", + "merge_join_test.go", + "metrics_test.go", + "prepared_test.go", + "revoke_test.go", + "set_test.go", + "show_test.go", + "simple_test.go", + "statement_context_test.go", + "union_scan_test.go", + "write_test.go", + ], + deps = [ + ":go_default_library", + "//:go_default_library", + "//ast:go_default_library", + "//context:go_default_library", + "//expression:go_default_library", + "//inspectkv:go_default_library", + "//kv:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//parser:go_default_library", + "//plan:go_default_library", + "//privilege/privileges:go_default_library", + "//sessionctx:go_default_library", + "//sessionctx/variable:go_default_library", + "//sessionctx/varsutil:go_default_library", + "//store/tikv:go_default_library", + "//table:go_default_library", + "//tablecodec:go_default_library", + "//terror:go_default_library", + "//util:go_default_library", + "//util/mock:go_default_library", + "//util/testkit:go_default_library", + "//util/testleak:go_default_library", + "//util/testutil:go_default_library", + "//util/types:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + ], +) diff --git a/expression/BUILD.bazel b/expression/BUILD.bazel new file mode 100644 index 0000000000000..0ec50f56b6e08 --- /dev/null +++ b/expression/BUILD.bazel @@ -0,0 +1,125 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = [ + "aggregation.go", + "builtin.go", + "builtin_cast.go", + "builtin_compare.go", + "builtin_control.go", + "builtin_encryption.go", + "builtin_info.go", + "builtin_json.go", + "builtin_like.go", + "builtin_math.go", + "builtin_miscellaneous.go", + "builtin_op.go", + "builtin_other.go", + "builtin_string.go", + "builtin_time.go", + "column.go", + "constant_fold.go", + "constant_propagation.go", + "distsql_builtin.go", + "expr_to_pb.go", + "expression.go", + "helper.go", + "scalar_function.go", + "schema.go", + "typeinferer.go", + "util.go", + ], + visibility = ["//visibility:public"], + deps = [ + "//ast:go_default_library", + "//context:go_default_library", + "//kv:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//parser/opcode:go_default_library", + "//sessionctx/variable:go_default_library", + "//sessionctx/varsutil:go_default_library", + "//terror:go_default_library", + "//util:go_default_library", + "//util/charset:go_default_library", + "//util/codec:go_default_library", + "//util/encrypt:go_default_library", + "//util/hack:go_default_library", + "//util/mock:go_default_library", + "//util/mvmap:go_default_library", + "//util/stringutil:go_default_library", + "//util/types:go_default_library", + "//util/types/json:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/ngaut/log:go_default_library", + "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", + "//vendor/github.com/twinj/uuid:go_default_library", + "//vendor/golang.org/x/text/transform:go_default_library", + ], +) + +go_test( + name = "go_default_test", + srcs = [ + "builtin_cast_test.go", + "builtin_control_test.go", + "builtin_encryption_test.go", + "builtin_info_test.go", + "builtin_json_test.go", + "builtin_math_test.go", + "builtin_miscellaneous_test.go", + "builtin_other_test.go", + "builtin_string_test.go", + "builtin_test.go", + "builtin_time_test.go", + "constant_test.go", + "distsql_builtin_test.go", + "evaluator_test.go", + "helper_test.go", + "util_test.go", + ], + library = ":go_default_library", + deps = [ + "//ast:go_default_library", + "//context:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//parser:go_default_library", + "//sessionctx/variable:go_default_library", + "//sessionctx/varsutil:go_default_library", + "//util/charset:go_default_library", + "//util/codec:go_default_library", + "//util/hack:go_default_library", + "//util/mock:go_default_library", + "//util/testleak:go_default_library", + "//util/testutil:go_default_library", + "//util/types:go_default_library", + "//util/types/json:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", + ], +) + +go_test( + name = "go_default_xtest", + srcs = ["typeinferer_test.go"], + deps = [ + ":go_default_library", + "//:go_default_library", + "//ast:go_default_library", + "//context:go_default_library", + "//kv:go_default_library", + "//model:go_default_library", + "//mysql:go_default_library", + "//plan:go_default_library", + "//sessionctx:go_default_library", + "//table:go_default_library", + "//util/charset:go_default_library", + "//util/testkit:go_default_library", + "//util/testleak:go_default_library", + "//vendor/github.com/juju/errors:go_default_library", + "//vendor/github.com/pingcap/check:go_default_library", + ], +) diff --git a/hack/lib/version.sh b/hack/lib/version.sh new file mode 100644 index 0000000000000..0b04fb25e6d03 --- /dev/null +++ b/hack/lib/version.sh @@ -0,0 +1,145 @@ +#!/bin/bash +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# ----------------------------------------------------------------------------- +# Version management helpers. These functions help to set, save and load the +# following variables: +# +# TIDB_GIT_COMMIT - The git commit id corresponding to this +# source code. +# TIDB_GIT_TREE_STATE - "clean" indicates no changes since the git commit id +# "dirty" indicates source code changes after the git commit id +# TIDB_GIT_VERSION - "vX.Y" used to indicate the last release version. +# TIDB_GIT_MAJOR - The major part of the version +# TIDB_GIT_MINOR - The minor component of the version + +# Grovels through git to set a set of env variables. +# +# If TIDB_GIT_VERSION_FILE, this function will load from that file instead of +# querying git. +tidb::version::get_version_vars() { + local git=(git --work-tree "${TIDB_ROOT}") + + if [[ -n ${TIDB_GIT_COMMIT-} ]] || TIDB_GIT_COMMIT=$("${git[@]}" rev-parse "HEAD^{commit}" 2>/dev/null); then + if [[ -z ${TIDB_GIT_TREE_STATE-} ]]; then + # Check if the tree is dirty. default to dirty + if git_status=$("${git[@]}" status --porcelain 2>/dev/null) && [[ -z ${git_status} ]]; then + TIDB_GIT_TREE_STATE="clean" + else + TIDB_GIT_TREE_STATE="dirty" + fi + fi + + # Use git describe to find the version based on annotated tags. + if [[ -n ${TIDB_GIT_VERSION-} ]] || TIDB_GIT_VERSION=$("${git[@]}" describe --tags --abbrev=14 "${TIDB_GIT_COMMIT}^{commit}" 2>/dev/null); then + # This translates the "git describe" to an actual semver.org + # compatible semantic version that looks something like this: + # v1.1.0-alpha.0.6+84c76d1142ea4d + # + # TODO: We continue calling this "git version" because so many + # downstream consumers are expecting it there. + DASHES_IN_VERSION=$(echo "${TIDB_GIT_VERSION}" | sed "s/[^-]//g") + if [[ "${DASHES_IN_VERSION}" == "---" ]] ; then + # We have distance to subversion (v1.1.0-subversion-1-gCommitHash) + TIDB_GIT_VERSION=$(echo "${TIDB_GIT_VERSION}" | sed "s/-\([0-9]\{1,\}\)-g\([0-9a-f]\{14\}\)$/.\1\+\2/") + elif [[ "${DASHES_IN_VERSION}" == "--" ]] ; then + # We have distance to base tag (v1.1.0-1-gCommitHash) + TIDB_GIT_VERSION=$(echo "${TIDB_GIT_VERSION}" | sed "s/-g\([0-9a-f]\{14\}\)$/+\1/") + fi + if [[ "${TIDB_GIT_TREE_STATE}" == "dirty" ]]; then + # git describe --dirty only considers changes to existing files, but + # that is problematic since new untracked .go files affect the build, + # so use our idea of "dirty" from git status instead. + TIDB_GIT_VERSION+="-dirty" + fi + + + # Try to match the "git describe" output to a regex to try to extract + # the "major" and "minor" versions and whether this is the exact tagged + # version or whether the tree is between two tagged versions. + if [[ "${TIDB_GIT_VERSION}" =~ ^v([0-9]+)\.([0-9]+)(\.[0-9]+)?([-].*)?$ ]]; then + TIDB_GIT_MAJOR=${BASH_REMATCH[1]} + TIDB_GIT_MINOR=${BASH_REMATCH[2]} + if [[ -n "${BASH_REMATCH[4]}" ]]; then + TIDB_GIT_MINOR+="+" + fi + fi + fi + fi +} + +# Saves the environment flags to $1 +tidb::version::save_version_vars() { + local version_file=${1-} + [[ -n ${version_file} ]] || { + echo "!!! Internal error. No file specified in tidb::version::save_version_vars" + return 1 + } + + cat <"${version_file}" +TIDB_GIT_COMMIT='${TIDB_GIT_COMMIT-}' +TIDB_GIT_TREE_STATE='${TIDB_GIT_TREE_STATE-}' +TIDB_GIT_VERSION='${TIDB_GIT_VERSION-}' +TIDB_GIT_MAJOR='${TIDB_GIT_MAJOR-}' +TIDB_GIT_MINOR='${TIDB_GIT_MINOR-}' +EOF +} + +# Loads up the version variables from file $1 +tidb::version::load_version_vars() { + local version_file=${1-} + [[ -n ${version_file} ]] || { + echo "!!! Internal error. No file specified in tidb::version::load_version_vars" + return 1 + } + + source "${version_file}" +} + +tidb::version::ldflag() { + local key=${1} + local val=${2} + + # If you update these, also update the list pkg/version/def.bzl. + echo "-X ${TIDB_GO_PACKAGE}/pkg/version.${key}=${val}" + echo "-X ${TIDB_GO_PACKAGE}/vendor/k8s.io/client-go/pkg/version.${key}=${val}" +} + +# Prints the value that needs to be passed to the -ldflags parameter of go build +# in order to set the TiDB based on the git tree status. +# IMPORTANT: if you update any of these, also update the lists in +# pkg/version/def.bzl and hack/print-workspace-status.sh. +tidb::version::ldflags() { + tidb::version::get_version_vars + + local -a ldflags=($(tidb::version::ldflag "buildDate" "$(date -u +'%Y-%m-%dT%H:%M:%SZ')")) + if [[ -n ${TIDB_GIT_COMMIT-} ]]; then + ldflags+=($(tidb::version::ldflag "gitCommit" "${TIDB_GIT_COMMIT}")) + ldflags+=($(tidb::version::ldflag "gitTreeState" "${TIDB_GIT_TREE_STATE}")) + fi + + if [[ -n ${TIDB_GIT_VERSION-} ]]; then + ldflags+=($(tidb::version::ldflag "gitVersion" "${TIDB_GIT_VERSION}")) + fi + + if [[ -n ${TIDB_GIT_MAJOR-} && -n ${TIDB_GIT_MINOR-} ]]; then + ldflags+=( + $(tidb::version::ldflag "gitMajor" "${TIDB_GIT_MAJOR}") + $(tidb::version::ldflag "gitMinor" "${TIDB_GIT_MINOR}") + ) + fi + + # The -ldflags parameter takes a single string, so join the output. + echo "${ldflags[*]-}" +} diff --git a/hack/print-workspace-status.sh b/hack/print-workspace-status.sh new file mode 100644 index 0000000000000..ac65569a5437a --- /dev/null +++ b/hack/print-workspace-status.sh @@ -0,0 +1,47 @@ +#!/usr/bin/env bash +# Copyright 2017 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This command is used by bazel as the workspace_status_command +# to implement build stamping with git information. + +set -o errexit +set -o nounset +set -o pipefail + +export TIDB_ROOT=$(dirname "${BASH_SOURCE}")/.. + +source "${TIDB_ROOT}/hack/lib/version.sh" +tidb::version::get_version_vars + +# Prefix with STABLE_ so that these values are saved to stable-status.txt +# instead of volatile-status.txt. +# Stamped rules will be retriggered by changes to stable-status.txt, but not by +# changes to volatile-status.txt. +# IMPORTANT: the camelCase vars should match the lists in hack/lib/version.sh +# and version/def.bzl. +cat < Date: Sat, 24 Jun 2017 11:28:58 +0800 Subject: [PATCH 03/21] undo version --- server/http_status.go | 4 ++-- server/server_test.go | 4 ++-- util/printer/printer.go | 13 ++++++++++--- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/server/http_status.go b/server/http_status.go index 00ac2c581a974..a4bc3c3ae8285 100644 --- a/server/http_status.go +++ b/server/http_status.go @@ -25,7 +25,7 @@ import ( "github.com/pingcap/pd/pd-client" "github.com/pingcap/tidb/mysql" "github.com/pingcap/tidb/store/tikv" - "github.com/pingcap/tidb/version" + "github.com/pingcap/tidb/util/printer" "github.com/prometheus/client_golang/prometheus" ) @@ -96,7 +96,7 @@ func (s *Server) handleStatus(w http.ResponseWriter, req *http.Request) { st := status{ Connections: s.ConnectionCount(), Version: mysql.ServerVersion, - GitHash: version.Get().GitCommit, + GitHash: printer.TiDBGitHash, } js, err := json.Marshal(st) if err != nil { diff --git a/server/server_test.go b/server/server_test.go index 3c70561f3744e..6750cb9c59a79 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -31,7 +31,7 @@ import ( . "github.com/pingcap/check" "github.com/pingcap/tidb/executor" tmysql "github.com/pingcap/tidb/mysql" - "github.com/pingcap/tidb/version" + "github.com/pingcap/tidb/util/printer" ) func TestT(t *testing.T) { @@ -517,7 +517,7 @@ func runTestStatusAPI(c *C) { err = decoder.Decode(&data) c.Assert(err, IsNil) c.Assert(data.Version, Equals, tmysql.ServerVersion) - c.Assert(data.GitHash, Equals, version.Get().GitCommit) + c.Assert(data.GitHash, Equals, printer.TiDBGitHash) } func runTestMultiStatements(c *C) { diff --git a/util/printer/printer.go b/util/printer/printer.go index 1fb3c7e1ab430..8fb0bba6f2aa1 100644 --- a/util/printer/printer.go +++ b/util/printer/printer.go @@ -18,19 +18,26 @@ import ( "fmt" "github.com/ngaut/log" - "github.com/pingcap/tidb/version" +) + +// Version information. +var ( + TiDBBuildTS = "None" + TiDBGitHash = "None" ) // PrintTiDBInfo prints the TiDB version information. func PrintTiDBInfo() { log.Infof("Welcome to TiDB.") log.Infof("Version:") - log.Infof("%#v\n", version.Get()) + log.Infof("Git Commit Hash: %s", TiDBGitHash) + log.Infof("UTC Build Time: %s", TiDBBuildTS) } // PrintRawTiDBInfo prints the TiDB version information without log info. func PrintRawTiDBInfo() { - fmt.Printf("%#v\n", version.Get()) + fmt.Println("Git Commit Hash:", TiDBGitHash) + fmt.Println("UTC Build Time: ", TiDBBuildTS) } // checkValidity checks whether cols and every data have the same length. From aef5ad39b68589295c3a4279c1c0739085dfd6e5 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sat, 24 Jun 2017 11:34:04 +0800 Subject: [PATCH 04/21] rename make file --- build/root/Makefile | 173 +------------------------------------------- 1 file changed, 1 insertion(+), 172 deletions(-) mode change 100644 => 120000 build/root/Makefile diff --git a/build/root/Makefile b/build/root/Makefile deleted file mode 100644 index 41a134a11dc26..0000000000000 --- a/build/root/Makefile +++ /dev/null @@ -1,172 +0,0 @@ -### Makefile for tidb - -GOPATH ?= $(shell go env GOPATH) - -# Ensure GOPATH is set before running build process. -ifeq "$(GOPATH)" "" - $(error Please set the environment variable GOPATH before running `make`) -endif - -CURDIR := $(shell pwd) -path_to_add := $(addsuffix /bin,$(subst :,/bin:,$(CURDIR)/_vendor:$(GOPATH))) -export PATH := $(path_to_add):$(PATH) - -GO := GO15VENDOREXPERIMENT="1" go -GOBUILD := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=0 $(GO) build -GOTEST := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) test -OVERALLS := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 overalls -GOVERALLS := goveralls - -ARCH := "`uname -s`" -LINUX := "Linux" -MAC := "Darwin" -PACKAGES := $$(go list ./...| grep -vE 'vendor') -FILES := $$(find . -name '*.go' | grep -vE 'vendor') - -LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBBuildTS=$(shell date -u '+%Y-%m-%d %I:%M:%S')" -LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBGitHash=$(shell git rev-parse HEAD)" - -TARGET = "" - -.PHONY: all build update parser clean todo test gotest interpreter server dev benchkv benchraw check parserlib checklist - -default: server buildsucc - -buildsucc: - @echo Build TiDB Server successfully! - -all: dev server benchkv - -dev: checklist parserlib build benchkv test check - -build: - $(GOBUILD) - -TEMP_FILE = temp_parser_file - -goyacc: - $(GOBUILD) -o bin/goyacc parser/goyacc/main.go - -parser: goyacc - bin/goyacc -o /dev/null -xegen $(TEMP_FILE) parser/parser.y - bin/goyacc -o parser/parser.go -xe $(TEMP_FILE) parser/parser.y 2>&1 | egrep "(shift|reduce)/reduce" | awk '{print} END {if (NR > 0) {print "Find conflict in parser.y. Please check y.output for more information."; system("rm -f $(TEMP_FILE)"); exit 1;}}' - rm -f $(TEMP_FILE) - rm -f y.output - - @if [ $(ARCH) = $(LINUX) ]; \ - then \ - sed -i -e 's|//line.*||' -e 's/yyEofCode/yyEOFCode/' parser/parser.go; \ - elif [ $(ARCH) = $(MAC) ]; \ - then \ - /usr/bin/sed -i "" 's|//line.*||' parser/parser.go; \ - /usr/bin/sed -i "" 's/yyEofCode/yyEOFCode/' parser/parser.go; \ - fi - - @awk 'BEGIN{print "// Code generated by goyacc"} {print $0}' parser/parser.go > tmp_parser.go && mv tmp_parser.go parser/parser.go; - -parserlib: parser/parser.go - -parser/parser.go: parser/parser.y - make parser - -check: - bash gitcookie.sh - go get github.com/golang/lint/golint - - @echo "vet" - @ go tool vet $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' - @echo "vet --shadow" - @ go tool vet --shadow $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' - @echo "golint" - @ golint ./... 2>&1 | grep -vE 'context\.Context|LastInsertId|NewLexer|\.pb\.go' | awk '{print} END{if(NR>0) {exit 1}}' - @echo "gofmt (simplify)" - @ gofmt -s -l -w $(FILES) 2>&1 | grep -v "parser/parser.go" | awk '{print} END{if(NR>0) {exit 1}}' - -goword: - go get github.com/chzchzchz/goword - @echo "goword" - @ goword $(FILES) | awk '{print} END{if(NR>0) {exit 1}}' - -errcheck: - go get github.com/kisielk/errcheck - errcheck -blank $(PACKAGES) - -clean: - $(GO) clean -i ./... - rm -rf *.out - -todo: - @grep -n ^[[:space:]]*_[[:space:]]*=[[:space:]][[:alpha:]][[:alnum:]]* */*.go parser/parser.y || true - @grep -n TODO */*.go parser/parser.y || true - @grep -n BUG */*.go parser/parser.y || true - @grep -n println */*.go parser/parser.y || true - -test: checklist gotest - -gotest: parserlib -ifeq ("$(TRAVIS_COVERAGE)", "1") - @echo "Running in TRAVIS_COVERAGE mode." - @export log_level=error; \ - go get github.com/go-playground/overalls - go get github.com/mattn/goveralls - $(OVERALLS) -project=github.com/pingcap/tidb -covermode=count -ignore='.git,_vendor' - $(GOVERALLS) -service=travis-ci -coverprofile=overalls.coverprofile -else - @echo "Running in native mode." - @export log_level=error; \ - $(GOTEST) -cover $(PACKAGES) -endif - -race: parserlib - @export log_level=debug; \ - $(GOTEST) -race $(PACKAGES) - -leak: parserlib - @export log_level=debug; \ - for dir in $(PACKAGES); do \ - echo $$dir; \ - $(GOTEST) -tags leak $$dir | awk 'END{if($$1=="FAIL") {exit 1}}' || exit 1; \ - done; - -tikv_integration_test: parserlib - $(GOTEST) ./store/tikv/. -with-tikv=true - -RACE_FLAG = -ifeq ("$(WITH_RACE)", "1") - RACE_FLAG = -race - GOBUILD = GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) build -endif - -server: parserlib -ifeq ($(TARGET), "") - $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS)' -o bin/tidb-server tidb-server/main.go -else - $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS)' -o '$(TARGET)' tidb-server/main.go -endif - -benchkv: - $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchkv cmd/benchkv/main.go - -benchraw: - $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchraw cmd/benchraw/main.go - -benchdb: - $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchdb cmd/benchdb/main.go - -update: - which glide >/dev/null || curl https://glide.sh/get | sh - which glide-vc || go get -v -u github.com/sgotti/glide-vc - rm -r vendor && mv _vendor/src vendor || true - rm -rf _vendor -ifdef PKG - glide get -s -v --skip-test ${PKG} -else - glide update -s -v -u --skip-test -endif - @echo "removing test files" - glide vc --only-code --no-tests - mkdir -p _vendor - mv vendor _vendor/src - -checklist: - cat checklist.md diff --git a/build/root/Makefile b/build/root/Makefile new file mode 120000 index 0000000000000..613e083f0bfae --- /dev/null +++ b/build/root/Makefile @@ -0,0 +1 @@ +build/root/Makefile \ No newline at end of file From 630ed523f2e6b3cde5b317ac02a5afe4b63f3382 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sat, 24 Jun 2017 13:20:21 +0800 Subject: [PATCH 05/21] fix ci failure --- build/root/Makefile | 173 +++++++++++++++++- plan/BUILD.bazel | 18 -- server/BUILD.bazel | 2 +- server/server_test.go | 4 +- util/printer/BUILD.bazel | 5 +- vendor/github.com/Sirupsen/logrus/BUILD.bazel | 4 +- vendor/github.com/boltdb/bolt/BUILD.bazel | 4 +- vendor/github.com/ngaut/log/BUILD.bazel | 12 +- .../goleveldb/leveldb/storage/BUILD.bazel | 12 +- 9 files changed, 184 insertions(+), 50 deletions(-) mode change 120000 => 100644 build/root/Makefile diff --git a/build/root/Makefile b/build/root/Makefile deleted file mode 120000 index 613e083f0bfae..0000000000000 --- a/build/root/Makefile +++ /dev/null @@ -1 +0,0 @@ -build/root/Makefile \ No newline at end of file diff --git a/build/root/Makefile b/build/root/Makefile new file mode 100644 index 0000000000000..65e0345c96e52 --- /dev/null +++ b/build/root/Makefile @@ -0,0 +1,172 @@ +### Makefile for tidb + +GOPATH ?= $(shell go env GOPATH) + +# Ensure GOPATH is set before running build process. +ifeq "$(GOPATH)" "" + $(error Please set the environment variable GOPATH before running `make`) +endif + +CURDIR := $(shell pwd) +path_to_add := $(addsuffix /bin,$(subst :,/bin:,$(CURDIR)/_vendor:$(GOPATH))) +export PATH := $(path_to_add):$(PATH) + +GO := GO15VENDOREXPERIMENT="1" go +GOBUILD := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=0 $(GO) build +GOTEST := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) test +OVERALLS := GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 overalls +GOVERALLS := goveralls + +ARCH := "`uname -s`" +LINUX := "Linux" +MAC := "Darwin" +PACKAGES := $$(go list ./...| grep -vE 'vendor') +FILES := $$(find . -name '*.go' | grep -vE 'vendor') + +LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBBuildTS=$(shell date -u '+%Y-%m-%d %I:%M:%S')" +LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBGitHash=$(shell git rev-parse HEAD)" + +TARGET = "" + +.PHONY: all build update parser clean todo test gotest interpreter server dev benchkv benchraw check parserlib checklist + +default: server buildsucc + +buildsucc: + @echo Build TiDB Server successfully! + +all: dev server benchkv + +dev: checklist parserlib build benchkv test check + +build: + $(GOBUILD) + +TEMP_FILE = temp_parser_file + +goyacc: + $(GOBUILD) -o bin/goyacc parser/goyacc/main.go + +parser: goyacc + bin/goyacc -o /dev/null -xegen $(TEMP_FILE) parser/parser.y + bin/goyacc -o parser/parser.go -xe $(TEMP_FILE) parser/parser.y 2>&1 | egrep "(shift|reduce)/reduce" | awk '{print} END {if (NR > 0) {print "Find conflict in parser.y. Please check y.output for more information."; system("rm -f $(TEMP_FILE)"); exit 1;}}' + rm -f $(TEMP_FILE) + rm -f y.output + + @if [ $(ARCH) = $(LINUX) ]; \ + then \ + sed -i -e 's|//line.*||' -e 's/yyEofCode/yyEOFCode/' parser/parser.go; \ + elif [ $(ARCH) = $(MAC) ]; \ + then \ + /usr/bin/sed -i "" 's|//line.*||' parser/parser.go; \ + /usr/bin/sed -i "" 's/yyEofCode/yyEOFCode/' parser/parser.go; \ + fi + + @awk 'BEGIN{print "// Code generated by goyacc"} {print $0}' parser/parser.go > tmp_parser.go && mv tmp_parser.go parser/parser.go; + +parserlib: parser/parser.go + +parser/parser.go: parser/parser.y + make parser + +check: + bash gitcookie.sh + go get github.com/golang/lint/golint + + @echo "vet" + @ go tool vet $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' + @echo "vet --shadow" + @ go tool vet --shadow $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' + @echo "golint" + @ golint ./... 2>&1 | grep -vE 'context\.Context|LastInsertId|NewLexer|vendor|\.pb\.go' | awk '{print} END{if(NR>0) {exit 1}}' + @echo "gofmt (simplify)" + @ gofmt -s -l -w $(FILES) 2>&1 | grep -v "parser/parser.go" | awk '{print} END{if(NR>0) {exit 1}}' + +goword: + go get github.com/chzchzchz/goword + @echo "goword" + @ goword $(FILES) | awk '{print} END{if(NR>0) {exit 1}}' + +errcheck: + go get github.com/kisielk/errcheck + errcheck -blank $(PACKAGES) + +clean: + $(GO) clean -i ./... + rm -rf *.out + +todo: + @grep -n ^[[:space:]]*_[[:space:]]*=[[:space:]][[:alpha:]][[:alnum:]]* */*.go parser/parser.y || true + @grep -n TODO */*.go parser/parser.y || true + @grep -n BUG */*.go parser/parser.y || true + @grep -n println */*.go parser/parser.y || true + +test: checklist gotest + +gotest: parserlib +ifeq ("$(TRAVIS_COVERAGE)", "1") + @echo "Running in TRAVIS_COVERAGE mode." + @export log_level=error; \ + go get github.com/go-playground/overalls + go get github.com/mattn/goveralls + $(OVERALLS) -project=github.com/pingcap/tidb -covermode=count -ignore='.git,_vendor' + $(GOVERALLS) -service=travis-ci -coverprofile=overalls.coverprofile +else + @echo "Running in native mode." + @export log_level=error; \ + $(GOTEST) -cover $(PACKAGES) +endif + +race: parserlib + @export log_level=debug; \ + $(GOTEST) -race $(PACKAGES) + +leak: parserlib + @export log_level=debug; \ + for dir in $(PACKAGES); do \ + echo $$dir; \ + $(GOTEST) -tags leak $$dir | awk 'END{if($$1=="FAIL") {exit 1}}' || exit 1; \ + done; + +tikv_integration_test: parserlib + $(GOTEST) ./store/tikv/. -with-tikv=true + +RACE_FLAG = +ifeq ("$(WITH_RACE)", "1") + RACE_FLAG = -race + GOBUILD = GOPATH=$(CURDIR)/_vendor:$(GOPATH) CGO_ENABLED=1 $(GO) build +endif + +server: parserlib +ifeq ($(TARGET), "") + $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS)' -o bin/tidb-server tidb-server/main.go +else + $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS)' -o '$(TARGET)' tidb-server/main.go +endif + +benchkv: + $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchkv cmd/benchkv/main.go + +benchraw: + $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchraw cmd/benchraw/main.go + +benchdb: + $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/benchdb cmd/benchdb/main.go + +update: + which glide >/dev/null || curl https://glide.sh/get | sh + which glide-vc || go get -v -u github.com/sgotti/glide-vc + rm -r vendor && mv _vendor/src vendor || true + rm -rf _vendor +ifdef PKG + glide get -s -v --skip-test ${PKG} +else + glide update -s -v -u --skip-test +endif + @echo "removing test files" + glide vc --only-code --no-tests + mkdir -p _vendor + mv vendor _vendor/src + +checklist: + cat checklist.md diff --git a/plan/BUILD.bazel b/plan/BUILD.bazel index b72862e0a680b..2e21dd5ab20d0 100644 --- a/plan/BUILD.bazel +++ b/plan/BUILD.bazel @@ -104,10 +104,6 @@ go_test( srcs = [ "analyze_test.go", "dag_plan_test.go", - "expression_test.go", - "logical_plan_test.go", - "physical_plan_test.go", - "planbuilder_test.go", "resolver_test.go", "validator_test.go", ], @@ -116,29 +112,15 @@ go_test( "//:go_default_library", "//ast:go_default_library", "//context:go_default_library", - "//domain:go_default_library", "//expression:go_default_library", - "//infoschema:go_default_library", "//kv:go_default_library", - "//model:go_default_library", - "//mysql:go_default_library", "//parser:go_default_library", "//sessionctx:go_default_library", - "//sessionctx/variable:go_default_library", - "//statistics:go_default_library", "//store/tikv:go_default_library", - "//store/tikv/oracle:go_default_library", "//terror:go_default_library", - "//util/charset:go_default_library", - "//util/mock:go_default_library", - "//util/ranger:go_default_library", "//util/testkit:go_default_library", "//util/testleak:go_default_library", - "//util/testutil:go_default_library", - "//util/types:go_default_library", "//vendor/github.com/juju/errors:go_default_library", "//vendor/github.com/pingcap/check:go_default_library", - "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", - "//vendor/golang.org/x/net/context:go_default_library", ], ) diff --git a/server/BUILD.bazel b/server/BUILD.bazel index 5724b5d5d8265..5d608818c52a6 100644 --- a/server/BUILD.bazel +++ b/server/BUILD.bazel @@ -35,6 +35,7 @@ go_library( "//util/arena:go_default_library", "//util/codec:go_default_library", "//util/hack:go_default_library", + "//util/printer:go_default_library", "//util/types:go_default_library", "//vendor/github.com/gorilla/mux:go_default_library", "//vendor/github.com/juju/errors:go_default_library", @@ -43,7 +44,6 @@ go_library( "//vendor/github.com/pingcap/pd/pd-client:go_default_library", "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", "//vendor/golang.org/x/net/context:go_default_library", - "//version:go_default_library", ], ) diff --git a/server/server_test.go b/server/server_test.go index 6750cb9c59a79..ba3f713611c26 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -253,8 +253,8 @@ func runTestLoadData(c *C) { }() _, err = fp.WriteString(` xxx row1_col1 - row1_col2 1abc -xxx row2_col1 - row2_col2 -xxxy row3_col1 - row3_col2 +xxx row2_col1 - row2_col2 +xxxy row3_col1 - row3_col2 xxx row4_col1 - 900 xxx row5_col1 - row5_col3`) c.Assert(err, IsNil) diff --git a/util/printer/BUILD.bazel b/util/printer/BUILD.bazel index 4ffffc07cd31a..c12bdb64841d1 100644 --- a/util/printer/BUILD.bazel +++ b/util/printer/BUILD.bazel @@ -4,10 +4,7 @@ go_library( name = "go_default_library", srcs = ["printer.go"], visibility = ["//visibility:public"], - deps = [ - "//vendor/github.com/ngaut/log:go_default_library", - "//version:go_default_library", - ], + deps = ["//vendor/github.com/ngaut/log:go_default_library"], ) go_test( diff --git a/vendor/github.com/Sirupsen/logrus/BUILD.bazel b/vendor/github.com/Sirupsen/logrus/BUILD.bazel index 5ccf9d0d043e6..b9c10a0f2781d 100644 --- a/vendor/github.com/Sirupsen/logrus/BUILD.bazel +++ b/vendor/github.com/Sirupsen/logrus/BUILD.bazel @@ -23,9 +23,7 @@ go_library( "terminal_linux.go", "terminal_notwindows.go", ], - "@io_bazel_rules_go//go/platform:windows_amd64": [ - "terminal_windows.go", - ], + "@io_bazel_rules_go//go/platform:windows_amd64": ["terminal_windows.go"], "//conditions:default": [], }), visibility = ["//visibility:public"], diff --git a/vendor/github.com/boltdb/bolt/BUILD.bazel b/vendor/github.com/boltdb/bolt/BUILD.bazel index 88c1efdb5c5fd..d9bfa48cb675a 100644 --- a/vendor/github.com/boltdb/bolt/BUILD.bazel +++ b/vendor/github.com/boltdb/bolt/BUILD.bazel @@ -15,9 +15,7 @@ go_library( "page.go", "tx.go", ] + select({ - "@io_bazel_rules_go//go/platform:darwin_amd64": [ - "bolt_amd64.go", - ], + "@io_bazel_rules_go//go/platform:darwin_amd64": ["bolt_amd64.go"], "@io_bazel_rules_go//go/platform:linux_amd64": [ "bolt_amd64.go", "bolt_linux.go", diff --git a/vendor/github.com/ngaut/log/BUILD.bazel b/vendor/github.com/ngaut/log/BUILD.bazel index 101ca634ce4f4..bd9cbae8f2841 100644 --- a/vendor/github.com/ngaut/log/BUILD.bazel +++ b/vendor/github.com/ngaut/log/BUILD.bazel @@ -5,15 +5,9 @@ go_library( srcs = [ "log.go", ] + select({ - "@io_bazel_rules_go//go/platform:darwin_amd64": [ - "crash_unix.go", - ], - "@io_bazel_rules_go//go/platform:linux_amd64": [ - "crash_unix.go", - ], - "@io_bazel_rules_go//go/platform:windows_amd64": [ - "crash_win.go", - ], + "@io_bazel_rules_go//go/platform:darwin_amd64": ["crash_unix.go"], + "@io_bazel_rules_go//go/platform:linux_amd64": ["crash_unix.go"], + "@io_bazel_rules_go//go/platform:windows_amd64": ["crash_win.go"], "//conditions:default": [], }), visibility = ["//visibility:public"], diff --git a/vendor/github.com/pingcap/goleveldb/leveldb/storage/BUILD.bazel b/vendor/github.com/pingcap/goleveldb/leveldb/storage/BUILD.bazel index 908182961ea9b..1d0d3f496949a 100644 --- a/vendor/github.com/pingcap/goleveldb/leveldb/storage/BUILD.bazel +++ b/vendor/github.com/pingcap/goleveldb/leveldb/storage/BUILD.bazel @@ -7,15 +7,9 @@ go_library( "mem_storage.go", "storage.go", ] + select({ - "@io_bazel_rules_go//go/platform:darwin_amd64": [ - "file_storage_unix.go", - ], - "@io_bazel_rules_go//go/platform:linux_amd64": [ - "file_storage_unix.go", - ], - "@io_bazel_rules_go//go/platform:windows_amd64": [ - "file_storage_windows.go", - ], + "@io_bazel_rules_go//go/platform:darwin_amd64": ["file_storage_unix.go"], + "@io_bazel_rules_go//go/platform:linux_amd64": ["file_storage_unix.go"], + "@io_bazel_rules_go//go/platform:windows_amd64": ["file_storage_windows.go"], "//conditions:default": [], }), visibility = ["//visibility:public"], From 2f027b096a14d46670cd0902aed541720bb89149 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sun, 25 Jun 2017 19:01:21 +0800 Subject: [PATCH 06/21] finish bazel build --- build/root/.bazelrc | 2 +- hack/lib/version.sh | 27 +++----------------------- hack/print-workspace-status.sh | 6 +----- server/BUILD.bazel | 4 ++-- server/http_status.go | 4 ++-- server/server_test.go | 8 ++++---- tidb-server/BUILD.bazel | 3 +++ util/printer/BUILD.bazel | 5 ++++- util/printer/printer.go | 15 ++++----------- version/BUILD.bazel | 11 +++++++++++ version/base.go | 22 +++++++++++++++++++++ version/def.bzl | 20 +++++++++++++++++++ version/types.go | 30 +++++++++++++++++++++++++++++ version/version.go | 35 ++++++++++++++++++++++++++++++++++ 14 files changed, 142 insertions(+), 50 deletions(-) mode change 100644 => 100755 hack/lib/version.sh mode change 100644 => 100755 hack/print-workspace-status.sh create mode 100644 version/BUILD.bazel create mode 100644 version/base.go create mode 100644 version/def.bzl create mode 100644 version/types.go create mode 100644 version/version.go diff --git a/build/root/.bazelrc b/build/root/.bazelrc index cf1a6ee82ffb6..8e989c90f103e 100644 --- a/build/root/.bazelrc +++ b/build/root/.bazelrc @@ -3,7 +3,7 @@ build --verbose_failures test --test_output=errors # Include git version info -#build --workspace_status_command hack/print-workspace-status.sh +build --workspace_status_command hack/print-workspace-status.sh # Make /tmp hermetic build --sandbox_tmpfs_path=/tmp diff --git a/hack/lib/version.sh b/hack/lib/version.sh old mode 100644 new mode 100755 index 0b04fb25e6d03..f2c64ec312651 --- a/hack/lib/version.sh +++ b/hack/lib/version.sh @@ -21,8 +21,6 @@ # TIDB_GIT_TREE_STATE - "clean" indicates no changes since the git commit id # "dirty" indicates source code changes after the git commit id # TIDB_GIT_VERSION - "vX.Y" used to indicate the last release version. -# TIDB_GIT_MAJOR - The major part of the version -# TIDB_GIT_MINOR - The minor component of the version # Grovels through git to set a set of env variables. # @@ -63,18 +61,6 @@ tidb::version::get_version_vars() { # so use our idea of "dirty" from git status instead. TIDB_GIT_VERSION+="-dirty" fi - - - # Try to match the "git describe" output to a regex to try to extract - # the "major" and "minor" versions and whether this is the exact tagged - # version or whether the tree is between two tagged versions. - if [[ "${TIDB_GIT_VERSION}" =~ ^v([0-9]+)\.([0-9]+)(\.[0-9]+)?([-].*)?$ ]]; then - TIDB_GIT_MAJOR=${BASH_REMATCH[1]} - TIDB_GIT_MINOR=${BASH_REMATCH[2]} - if [[ -n "${BASH_REMATCH[4]}" ]]; then - TIDB_GIT_MINOR+="+" - fi - fi fi fi } @@ -83,7 +69,8 @@ tidb::version::get_version_vars() { tidb::version::save_version_vars() { local version_file=${1-} [[ -n ${version_file} ]] || { - echo "!!! Internal error. No file specified in tidb::version::save_version_vars" + + echo "!!! Internal error. No file specified in tidb::version::save_version_vars" return 1 } @@ -112,8 +99,7 @@ tidb::version::ldflag() { local val=${2} # If you update these, also update the list pkg/version/def.bzl. - echo "-X ${TIDB_GO_PACKAGE}/pkg/version.${key}=${val}" - echo "-X ${TIDB_GO_PACKAGE}/vendor/k8s.io/client-go/pkg/version.${key}=${val}" + echo "-X ${TIDB_GO_PACKAGE}/version.${key}=${val}" } # Prints the value that needs to be passed to the -ldflags parameter of go build @@ -133,13 +119,6 @@ tidb::version::ldflags() { ldflags+=($(tidb::version::ldflag "gitVersion" "${TIDB_GIT_VERSION}")) fi - if [[ -n ${TIDB_GIT_MAJOR-} && -n ${TIDB_GIT_MINOR-} ]]; then - ldflags+=( - $(tidb::version::ldflag "gitMajor" "${TIDB_GIT_MAJOR}") - $(tidb::version::ldflag "gitMinor" "${TIDB_GIT_MINOR}") - ) - fi - # The -ldflags parameter takes a single string, so join the output. echo "${ldflags[*]-}" } diff --git a/hack/print-workspace-status.sh b/hack/print-workspace-status.sh old mode 100644 new mode 100755 index ac65569a5437a..275f3525e4d43 --- a/hack/print-workspace-status.sh +++ b/hack/print-workspace-status.sh @@ -30,18 +30,14 @@ tidb::version::get_version_vars # Stamped rules will be retriggered by changes to stable-status.txt, but not by # changes to volatile-status.txt. # IMPORTANT: the camelCase vars should match the lists in hack/lib/version.sh -# and version/def.bzl. +# and util/printer/def.bzl. cat < Date: Sun, 25 Jun 2017 19:21:43 +0800 Subject: [PATCH 07/21] fix ci failure --- server/http_status.go | 2 +- server/server_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/http_status.go b/server/http_status.go index 84b58c875da3b..00ac2c581a974 100644 --- a/server/http_status.go +++ b/server/http_status.go @@ -25,7 +25,7 @@ import ( "github.com/pingcap/pd/pd-client" "github.com/pingcap/tidb/mysql" "github.com/pingcap/tidb/store/tikv" - "github.com/pingcap/tidb/versio" + "github.com/pingcap/tidb/version" "github.com/prometheus/client_golang/prometheus" ) diff --git a/server/server_test.go b/server/server_test.go index 3c70561f3744e..f6112584cd137 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -253,8 +253,8 @@ func runTestLoadData(c *C) { }() _, err = fp.WriteString(` xxx row1_col1 - row1_col2 1abc -xxx row2_col1 - row2_col2 -xxxy row3_col1 - row3_col2 +xxx row2_col1 - row2_col2 +xxxy row3_col1 - row3_col2 xxx row4_col1 - 900 xxx row5_col1 - row5_col3`) c.Assert(err, IsNil) From 1d91ce097c11721a1cd57ebc9f3470dc167b9071 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sun, 25 Jun 2017 19:28:20 +0800 Subject: [PATCH 08/21] fix ci failure --- version/base.go | 9 ++++----- version/types.go | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/version/base.go b/version/base.go index a17c2790d2f2a..2f9a6f8008d3a 100644 --- a/version/base.go +++ b/version/base.go @@ -14,9 +14,8 @@ package version var ( - gitVersion string = "v0.0.0-master+$Format:%h$" - gitCommit string = "$Format:%H$" // sha1 from git, output of $(git rev-parse HEAD) - gitTreeState string = "not a git tree" // state of git tree, either "clean" or "dirty" - - buildDate string = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ') + gitVersion = "v0.0.0-master+$Format:%h$" + gitCommit = "$Format:%H$" // sha1 from git, output of $(git rev-parse HEAD) + gitTreeState = "not a git tree" // state of git tree, either "clean" or "dirty" + buildDate = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ') ) diff --git a/version/types.go b/version/types.go index a093d3f1668b8..52ebef801b7f7 100644 --- a/version/types.go +++ b/version/types.go @@ -13,7 +13,7 @@ package version -// how we'll want to distribute that information. +// Info contains versioning information. type Info struct { GitVersion string `json:"gitVersion"` GitCommit string `json:"gitCommit"` From 32ea5e2f26e1ff7f7429291b10c6acc0766d37e0 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sun, 25 Jun 2017 21:08:18 +0800 Subject: [PATCH 09/21] fix version --- util/printer/printer.go | 4 +--- version/types.go | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/util/printer/printer.go b/util/printer/printer.go index d3afc138c3212..05a736b2deb3d 100644 --- a/util/printer/printer.go +++ b/util/printer/printer.go @@ -23,9 +23,7 @@ import ( // PrintTiDBInfo prints the TiDB version information. func PrintTiDBInfo() { - log.Infof("Welcome to TiDB.") - // TODO add format - log.Infof("#%v", version.Get()) + log.Infof("Welcome to TiDB: %s", version.Get()) } // PrintRawTiDBInfo prints the TiDB version information without log info. diff --git a/version/types.go b/version/types.go index 52ebef801b7f7..a9d2791cdebe4 100644 --- a/version/types.go +++ b/version/types.go @@ -15,8 +15,9 @@ package version // Info contains versioning information. type Info struct { - GitVersion string `json:"gitVersion"` - GitCommit string `json:"gitCommit"` + GitVersion string `json:"gitVersion"` + GitCommit string `json:"gitCommit"` + GitTreeState string `json:"gitTreeState"` BuildDate string `json:"buildDate"` GoVersion string `json:"goVersion"` From c2f4f859bc57273cf5d925542f23b9477fdbc575 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sun, 25 Jun 2017 21:10:44 +0800 Subject: [PATCH 10/21] let tidb-server exit more gracefully --- tidb-server/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tidb-server/main.go b/tidb-server/main.go index 6ca18e6649254..4decbccffa9da 100644 --- a/tidb-server/main.go +++ b/tidb-server/main.go @@ -173,7 +173,9 @@ func main() { pushMetric(*metricsAddr, time.Duration(*metricsInterval)*time.Second) - log.Error(svr.Run()) + if err := svr.Run(); err != nil { + log.Error(err) + } domain.Close() os.Exit(0) } From 1a3c7eba13d17d2f8fe96f754bdf131d30dc16a8 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sun, 25 Jun 2017 16:57:13 +0000 Subject: [PATCH 11/21] update bazel file --- BUILD.bazel | 1 + build/root/Makefile | 7 +++++++ executor/BUILD.bazel | 2 ++ sessionctx/varsutil/BUILD.bazel | 3 ++- sessionctx/varsutil/varsutil.go | 2 +- .../{varsutil_test.go => varsutil_internal_test.go} | 0 6 files changed, 13 insertions(+), 2 deletions(-) rename sessionctx/varsutil/{varsutil_test.go => varsutil_internal_test.go} (100%) diff --git a/BUILD.bazel b/BUILD.bazel index b293405a5e0dd..5ffd847927a50 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -48,6 +48,7 @@ go_library( go_test( name = "go_default_test", + size = "medium", srcs = [ "bench_test.go", "bootstrap_test.go", diff --git a/build/root/Makefile b/build/root/Makefile index 65e0345c96e52..a3d41cc10c6ee 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -170,3 +170,10 @@ endif checklist: cat checklist.md +bazel-test: + bazel test //executor/... //distsql/... //mysql/... //sessionctx/... --test_output=errors + bazel test //ddl/... + bazel test //terror/... //ast/... //infoschema/... //parser/... //statistics/... --test_output=errors + bazel test //domain/... //inspectkv/... //perfschema/... //store/... //util/... --test_output=errors + bazel test //cmd/... //kv/... //plan/... //structure/... //context/... //expression/... --test_output=errors + bazel test //meta/... //privilege/... //table/... //model/... //server/... //tablecodec/... --test_output=errors diff --git a/executor/BUILD.bazel b/executor/BUILD.bazel index 0d34595d4a374..16e3be166f2b7 100644 --- a/executor/BUILD.bazel +++ b/executor/BUILD.bazel @@ -66,6 +66,7 @@ go_library( go_test( name = "go_default_test", + size = "small", srcs = ["executor_pkg_test.go"], library = ":go_default_library", deps = [ @@ -77,6 +78,7 @@ go_test( go_test( name = "go_default_xtest", + size = "small", srcs = [ "aggregate_test.go", "analyze_test.go", diff --git a/sessionctx/varsutil/BUILD.bazel b/sessionctx/varsutil/BUILD.bazel index ce69c8baff011..d28d5bc1ff065 100644 --- a/sessionctx/varsutil/BUILD.bazel +++ b/sessionctx/varsutil/BUILD.bazel @@ -14,7 +14,8 @@ go_library( go_test( name = "go_default_test", - srcs = ["varsutil_test.go"], + size = "small", + srcs = ["varsutil_internal_test.go"], library = ":go_default_library", deps = [ "//mysql:go_default_library", diff --git a/sessionctx/varsutil/varsutil.go b/sessionctx/varsutil/varsutil.go index 023183fb99acf..0cd36f6b84374 100644 --- a/sessionctx/varsutil/varsutil.go +++ b/sessionctx/varsutil/varsutil.go @@ -14,11 +14,11 @@ package varsutil import ( + "fmt" "strconv" "strings" "time" - "fmt" "github.com/juju/errors" "github.com/pingcap/tidb/mysql" "github.com/pingcap/tidb/sessionctx/variable" diff --git a/sessionctx/varsutil/varsutil_test.go b/sessionctx/varsutil/varsutil_internal_test.go similarity index 100% rename from sessionctx/varsutil/varsutil_test.go rename to sessionctx/varsutil/varsutil_internal_test.go From 7c999ef2d941799ca707d85d337d6fba6bc11831 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sun, 25 Jun 2017 16:58:59 +0000 Subject: [PATCH 12/21] fix timezone bug --- sessionctx/varsutil/varsutil_internal_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sessionctx/varsutil/varsutil_internal_test.go b/sessionctx/varsutil/varsutil_internal_test.go index af8deb5020b4f..9fb25d88d5f54 100644 --- a/sessionctx/varsutil/varsutil_internal_test.go +++ b/sessionctx/varsutil/varsutil_internal_test.go @@ -103,6 +103,7 @@ func (s *testVarsutilSuite) TestVarsutil(c *C) { c.Assert(err, IsNil) c.Assert(val, Equals, "1") + zone, _ := time.Now().In(time.Local).Zone() // Test case for time_zone session variable. tests := []struct { input string @@ -112,7 +113,7 @@ func (s *testVarsutilSuite) TestVarsutil(c *C) { }{ {"Europe/Helsinki", "Europe/Helsinki", true, -2 * time.Hour}, {"US/Eastern", "US/Eastern", true, 5 * time.Hour}, - {"SYSTEM", "Local", false, 0}, + {"SYSTEM", zone, false, 0}, {"+10:00", "UTC", true, -10 * time.Hour}, {"-6:00", "UTC", true, 6 * time.Hour}, } From a137e086084a305a0e494c8ecfdc01cc3f6c9324 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Sun, 25 Jun 2017 17:37:56 +0000 Subject: [PATCH 13/21] seperate mock from test file to util file --- plan/BUILD.bazel | 9 +- plan/logical_plan_test.go | 364 ------------------------------------- plan/util.go | 365 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 369 insertions(+), 369 deletions(-) diff --git a/plan/BUILD.bazel b/plan/BUILD.bazel index 2e21dd5ab20d0..615eda965fce9 100644 --- a/plan/BUILD.bazel +++ b/plan/BUILD.bazel @@ -38,6 +38,7 @@ go_library( "//ast:go_default_library", "//context:go_default_library", "//distsql:go_default_library", + "//domain:go_default_library", "//expression:go_default_library", "//infoschema:go_default_library", "//kv:go_default_library", @@ -50,16 +51,19 @@ go_library( "//sessionctx/variable:go_default_library", "//sessionctx/varsutil:go_default_library", "//statistics:go_default_library", + "//store/tikv/oracle:go_default_library", "//table:go_default_library", "//tablecodec:go_default_library", "//terror:go_default_library", "//util/charset:go_default_library", "//util/codec:go_default_library", + "//util/mock:go_default_library", "//util/ranger:go_default_library", "//util/types:go_default_library", "//vendor/github.com/juju/errors:go_default_library", "//vendor/github.com/ngaut/log:go_default_library", "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", + "//vendor/golang.org/x/net/context:go_default_library", ], ) @@ -75,17 +79,14 @@ go_test( deps = [ "//ast:go_default_library", "//context:go_default_library", - "//domain:go_default_library", "//expression:go_default_library", "//infoschema:go_default_library", - "//kv:go_default_library", "//model:go_default_library", "//mysql:go_default_library", "//parser:go_default_library", "//sessionctx:go_default_library", "//sessionctx/variable:go_default_library", "//statistics:go_default_library", - "//store/tikv/oracle:go_default_library", "//terror:go_default_library", "//util/charset:go_default_library", "//util/mock:go_default_library", @@ -94,8 +95,6 @@ go_test( "//util/testutil:go_default_library", "//util/types:go_default_library", "//vendor/github.com/pingcap/check:go_default_library", - "//vendor/github.com/pingcap/tipb/go-tipb:go_default_library", - "//vendor/golang.org/x/net/context:go_default_library", ], ) diff --git a/plan/logical_plan_test.go b/plan/logical_plan_test.go index 9905a047fb960..34bb2e3d6862c 100644 --- a/plan/logical_plan_test.go +++ b/plan/logical_plan_test.go @@ -19,23 +19,10 @@ import ( . "github.com/pingcap/check" "github.com/pingcap/tidb/ast" - "github.com/pingcap/tidb/context" - "github.com/pingcap/tidb/domain" - "github.com/pingcap/tidb/expression" - "github.com/pingcap/tidb/infoschema" - "github.com/pingcap/tidb/kv" - "github.com/pingcap/tidb/model" "github.com/pingcap/tidb/mysql" "github.com/pingcap/tidb/parser" - "github.com/pingcap/tidb/sessionctx" - "github.com/pingcap/tidb/statistics" - "github.com/pingcap/tidb/store/tikv/oracle" "github.com/pingcap/tidb/terror" - "github.com/pingcap/tidb/util/mock" "github.com/pingcap/tidb/util/testleak" - "github.com/pingcap/tidb/util/types" - "github.com/pingcap/tipb/go-tipb" - goctx "golang.org/x/net/context" ) var _ = Suite(&testPlanSuite{}) @@ -53,357 +40,6 @@ func (s *testPlanSuite) SetUpSuite(c *C) { s.Parser = parser.New() } -func newLongType() types.FieldType { - return *(types.NewFieldType(mysql.TypeLong)) -} - -func newStringType() types.FieldType { - ft := types.NewFieldType(mysql.TypeVarchar) - ft.Charset, ft.Collate = types.DefaultCharsetForType(mysql.TypeVarchar) - return *ft -} - -func MockTable() *model.TableInfo { - indices := []*model.IndexInfo{ - { - Name: model.NewCIStr("c_d_e"), - Columns: []*model.IndexColumn{ - { - Name: model.NewCIStr("c"), - Length: types.UnspecifiedLength, - Offset: 2, - }, - { - Name: model.NewCIStr("d"), - Length: types.UnspecifiedLength, - Offset: 3, - }, - { - Name: model.NewCIStr("e"), - Length: types.UnspecifiedLength, - Offset: 4, - }, - }, - State: model.StatePublic, - Unique: true, - }, - { - Name: model.NewCIStr("e"), - Columns: []*model.IndexColumn{ - { - Name: model.NewCIStr("e"), - Length: types.UnspecifiedLength, - Offset: 4, - }, - }, - State: model.StateWriteOnly, - Unique: true, - }, - { - Name: model.NewCIStr("f"), - Columns: []*model.IndexColumn{ - { - Name: model.NewCIStr("f"), - Length: types.UnspecifiedLength, - Offset: 8, - }, - }, - State: model.StatePublic, - Unique: true, - }, - { - Name: model.NewCIStr("g"), - Columns: []*model.IndexColumn{ - { - Name: model.NewCIStr("g"), - Length: types.UnspecifiedLength, - Offset: 9, - }, - }, - State: model.StatePublic, - Unique: true, - }, - { - Name: model.NewCIStr("f_g"), - Columns: []*model.IndexColumn{ - { - Name: model.NewCIStr("f"), - Length: types.UnspecifiedLength, - Offset: 8, - }, - { - Name: model.NewCIStr("g"), - Length: types.UnspecifiedLength, - Offset: 9, - }, - }, - State: model.StatePublic, - Unique: true, - }, - { - Name: model.NewCIStr("c_d_e_str"), - Columns: []*model.IndexColumn{ - { - Name: model.NewCIStr("c_str"), - Length: types.UnspecifiedLength, - Offset: 5, - }, - { - Name: model.NewCIStr("d_str"), - Length: types.UnspecifiedLength, - Offset: 6, - }, - { - Name: model.NewCIStr("e_str"), - Length: types.UnspecifiedLength, - Offset: 7, - }, - }, - State: model.StatePublic, - }, - { - Name: model.NewCIStr("e_d_c_str_prefix"), - Columns: []*model.IndexColumn{ - { - Name: model.NewCIStr("e_str"), - Length: types.UnspecifiedLength, - Offset: 7, - }, - { - Name: model.NewCIStr("d_str"), - Length: types.UnspecifiedLength, - Offset: 6, - }, - { - Name: model.NewCIStr("c_str"), - Length: 10, - Offset: 5, - }, - }, - State: model.StatePublic, - }, - } - pkColumn := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("a"), - FieldType: newLongType(), - ID: 1, - } - col0 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("b"), - FieldType: newLongType(), - ID: 2, - } - col1 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("c"), - FieldType: newLongType(), - ID: 3, - } - col2 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("d"), - FieldType: newLongType(), - ID: 4, - } - col3 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("e"), - FieldType: newLongType(), - ID: 5, - } - colStr1 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("c_str"), - FieldType: newStringType(), - ID: 6, - } - colStr2 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("d_str"), - FieldType: newStringType(), - ID: 7, - } - colStr3 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("e_str"), - FieldType: newStringType(), - ID: 8, - } - col4 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("f"), - FieldType: newLongType(), - ID: 9, - } - col5 := &model.ColumnInfo{ - State: model.StatePublic, - Name: model.NewCIStr("g"), - FieldType: newLongType(), - ID: 10, - } - - pkColumn.Flag = mysql.PriKeyFlag - // Column 'b', 'c', 'd', 'f', 'g' is not null. - col0.Flag = mysql.NotNullFlag - col1.Flag = mysql.NotNullFlag - col2.Flag = mysql.NotNullFlag - col4.Flag = mysql.NotNullFlag - col5.Flag = mysql.NotNullFlag - table := &model.TableInfo{ - Columns: []*model.ColumnInfo{pkColumn, col0, col1, col2, col3, colStr1, colStr2, colStr3, col4, col5}, - Indices: indices, - Name: model.NewCIStr("t"), - PKIsHandle: true, - } - return table -} - -func MockResolve(node ast.Node) (infoschema.InfoSchema, error) { - is := infoschema.MockInfoSchema([]*model.TableInfo{MockTable()}) - ctx := mockContext() - err := MockResolveName(node, is, "test", ctx) - if err != nil { - return nil, err - } - return is, expression.InferType(ctx.GetSessionVars().StmtCtx, node) -} - -func supportExpr(exprType tipb.ExprType) bool { - switch exprType { - // data type - case tipb.ExprType_Null, tipb.ExprType_Int64, tipb.ExprType_Uint64, - tipb.ExprType_Float32, tipb.ExprType_Float64, tipb.ExprType_String, - tipb.ExprType_Bytes, tipb.ExprType_MysqlDuration, tipb.ExprType_MysqlDecimal, - tipb.ExprType_MysqlTime, tipb.ExprType_ColumnRef: - return true - // logic operators - case tipb.ExprType_And, tipb.ExprType_Or, tipb.ExprType_Not, tipb.ExprType_Xor: - return true - // compare operators - case tipb.ExprType_LT, tipb.ExprType_LE, tipb.ExprType_EQ, tipb.ExprType_NE, - tipb.ExprType_GE, tipb.ExprType_GT, tipb.ExprType_NullEQ, - tipb.ExprType_In, tipb.ExprType_ValueList, tipb.ExprType_Like: - return true - // arithmetic operators - case tipb.ExprType_Plus, tipb.ExprType_Div, tipb.ExprType_Minus, - tipb.ExprType_Mul, tipb.ExprType_IntDiv, tipb.ExprType_Mod: - return true - // aggregate functions - case tipb.ExprType_Count, tipb.ExprType_First, tipb.ExprType_Sum, - tipb.ExprType_Avg, tipb.ExprType_Max, tipb.ExprType_Min: - return true - // bitwise operators - case tipb.ExprType_BitAnd, tipb.ExprType_BitOr, tipb.ExprType_BitXor, tipb.ExprType_BitNeg: - return true - // control functions - case tipb.ExprType_Case, tipb.ExprType_If, tipb.ExprType_IfNull, tipb.ExprType_NullIf: - return true - // other functions - case tipb.ExprType_Coalesce, tipb.ExprType_IsNull: - return true - case kv.ReqSubTypeDesc: - return true - default: - return false - } -} - -type mockClient struct { -} - -func (c *mockClient) Send(ctx goctx.Context, _ *kv.Request) kv.Response { - return nil -} - -func (c *mockClient) IsRequestTypeSupported(reqType, subType int64) bool { - switch reqType { - case kv.ReqTypeSelect, kv.ReqTypeIndex: - switch subType { - case kv.ReqSubTypeGroupBy, kv.ReqSubTypeBasic, kv.ReqSubTypeTopN: - return true - default: - return supportExpr(tipb.ExprType(subType)) - } - } - return false -} - -type mockStore struct { - client *mockClient -} - -func (m *mockStore) GetClient() kv.Client { - return m.client -} - -func (m *mockStore) GetOracle() oracle.Oracle { - return nil -} - -func (m *mockStore) Begin() (kv.Transaction, error) { - return nil, nil -} - -// BeginWithStartTS begins with startTS. -func (m *mockStore) BeginWithStartTS(startTS uint64) (kv.Transaction, error) { - return m.Begin() -} - -func (m *mockStore) GetSnapshot(ver kv.Version) (kv.Snapshot, error) { - return nil, nil -} - -func (m *mockStore) Close() error { - return nil -} - -func (m *mockStore) UUID() string { - return "mock" -} - -func (m *mockStore) CurrentVersion() (kv.Version, error) { - return kv.Version{}, nil -} - -func mockContext() context.Context { - ctx := mock.NewContext() - ctx.Store = &mockStore{ - client: &mockClient{}, - } - do := &domain.Domain{} - do.CreateStatsHandle(ctx) - sessionctx.BindDomain(ctx, do) - return ctx -} - -func mockStatsTable(tbl *model.TableInfo, rowCount int64) *statistics.Table { - statsTbl := &statistics.Table{ - TableID: tbl.ID, - Count: rowCount, - Columns: make(map[int64]*statistics.Column, len(tbl.Columns)), - Indices: make(map[int64]*statistics.Index, len(tbl.Indices)), - } - return statsTbl -} - -// mockStatsHistogram will create a statistics.Histogram, of which the data is uniform distribution. -func mockStatsHistogram(id int64, values []types.Datum, repeat int64) *statistics.Histogram { - ndv := len(values) - histogram := &statistics.Histogram{ - ID: id, - NDV: int64(ndv), - Buckets: make([]statistics.Bucket, ndv), - } - for i := 0; i < ndv; i++ { - histogram.Buckets[i].Repeats = repeat - histogram.Buckets[i].Count = repeat * int64(i+1) - histogram.Buckets[i].UpperBound = values[i] - } - return histogram -} - func (s *testPlanSuite) TestPredicatePushDown(c *C) { defer testleak.AfterTest(c)() tests := []struct { diff --git a/plan/util.go b/plan/util.go index f59b6adbbdc18..b8e6cec73f600 100644 --- a/plan/util.go +++ b/plan/util.go @@ -15,6 +15,20 @@ package plan import ( "github.com/pingcap/tidb/ast" + "github.com/pingcap/tidb/context" + "github.com/pingcap/tidb/domain" + "github.com/pingcap/tidb/expression" + "github.com/pingcap/tidb/infoschema" + "github.com/pingcap/tidb/kv" + "github.com/pingcap/tidb/model" + "github.com/pingcap/tidb/mysql" + "github.com/pingcap/tidb/sessionctx" + "github.com/pingcap/tidb/statistics" + "github.com/pingcap/tidb/store/tikv/oracle" + "github.com/pingcap/tidb/util/mock" + "github.com/pingcap/tidb/util/types" + "github.com/pingcap/tipb/go-tipb" + goctx "golang.org/x/net/context" ) // AggregateFuncExtractor visits Expr tree. @@ -45,3 +59,354 @@ func (a *AggregateFuncExtractor) Leave(n ast.Node) (ast.Node, bool) { } return n, true } + +func MockTable() *model.TableInfo { + indices := []*model.IndexInfo{ + { + Name: model.NewCIStr("c_d_e"), + Columns: []*model.IndexColumn{ + { + Name: model.NewCIStr("c"), + Length: types.UnspecifiedLength, + Offset: 2, + }, + { + Name: model.NewCIStr("d"), + Length: types.UnspecifiedLength, + Offset: 3, + }, + { + Name: model.NewCIStr("e"), + Length: types.UnspecifiedLength, + Offset: 4, + }, + }, + State: model.StatePublic, + Unique: true, + }, + { + Name: model.NewCIStr("e"), + Columns: []*model.IndexColumn{ + { + Name: model.NewCIStr("e"), + Length: types.UnspecifiedLength, + Offset: 4, + }, + }, + State: model.StateWriteOnly, + Unique: true, + }, + { + Name: model.NewCIStr("f"), + Columns: []*model.IndexColumn{ + { + Name: model.NewCIStr("f"), + Length: types.UnspecifiedLength, + Offset: 8, + }, + }, + State: model.StatePublic, + Unique: true, + }, + { + Name: model.NewCIStr("g"), + Columns: []*model.IndexColumn{ + { + Name: model.NewCIStr("g"), + Length: types.UnspecifiedLength, + Offset: 9, + }, + }, + State: model.StatePublic, + Unique: true, + }, + { + Name: model.NewCIStr("f_g"), + Columns: []*model.IndexColumn{ + { + Name: model.NewCIStr("f"), + Length: types.UnspecifiedLength, + Offset: 8, + }, + { + Name: model.NewCIStr("g"), + Length: types.UnspecifiedLength, + Offset: 9, + }, + }, + State: model.StatePublic, + Unique: true, + }, + { + Name: model.NewCIStr("c_d_e_str"), + Columns: []*model.IndexColumn{ + { + Name: model.NewCIStr("c_str"), + Length: types.UnspecifiedLength, + Offset: 5, + }, + { + Name: model.NewCIStr("d_str"), + Length: types.UnspecifiedLength, + Offset: 6, + }, + { + Name: model.NewCIStr("e_str"), + Length: types.UnspecifiedLength, + Offset: 7, + }, + }, + State: model.StatePublic, + }, + { + Name: model.NewCIStr("e_d_c_str_prefix"), + Columns: []*model.IndexColumn{ + { + Name: model.NewCIStr("e_str"), + Length: types.UnspecifiedLength, + Offset: 7, + }, + { + Name: model.NewCIStr("d_str"), + Length: types.UnspecifiedLength, + Offset: 6, + }, + { + Name: model.NewCIStr("c_str"), + Length: 10, + Offset: 5, + }, + }, + State: model.StatePublic, + }, + } + pkColumn := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("a"), + FieldType: newLongType(), + ID: 1, + } + col0 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("b"), + FieldType: newLongType(), + ID: 2, + } + col1 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("c"), + FieldType: newLongType(), + ID: 3, + } + col2 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("d"), + FieldType: newLongType(), + ID: 4, + } + col3 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("e"), + FieldType: newLongType(), + ID: 5, + } + colStr1 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("c_str"), + FieldType: newStringType(), + ID: 6, + } + colStr2 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("d_str"), + FieldType: newStringType(), + ID: 7, + } + colStr3 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("e_str"), + FieldType: newStringType(), + ID: 8, + } + col4 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("f"), + FieldType: newLongType(), + ID: 9, + } + col5 := &model.ColumnInfo{ + State: model.StatePublic, + Name: model.NewCIStr("g"), + FieldType: newLongType(), + ID: 10, + } + + pkColumn.Flag = mysql.PriKeyFlag + // Column 'b', 'c', 'd', 'f', 'g' is not null. + col0.Flag = mysql.NotNullFlag + col1.Flag = mysql.NotNullFlag + col2.Flag = mysql.NotNullFlag + col4.Flag = mysql.NotNullFlag + col5.Flag = mysql.NotNullFlag + table := &model.TableInfo{ + Columns: []*model.ColumnInfo{pkColumn, col0, col1, col2, col3, colStr1, colStr2, colStr3, col4, col5}, + Indices: indices, + Name: model.NewCIStr("t"), + PKIsHandle: true, + } + return table +} + +func MockResolve(node ast.Node) (infoschema.InfoSchema, error) { + is := infoschema.MockInfoSchema([]*model.TableInfo{MockTable()}) + ctx := mockContext() + err := MockResolveName(node, is, "test", ctx) + if err != nil { + return nil, err + } + return is, expression.InferType(ctx.GetSessionVars().StmtCtx, node) +} + +func newLongType() types.FieldType { + return *(types.NewFieldType(mysql.TypeLong)) +} + +func newStringType() types.FieldType { + ft := types.NewFieldType(mysql.TypeVarchar) + ft.Charset, ft.Collate = types.DefaultCharsetForType(mysql.TypeVarchar) + return *ft +} + +func mockContext() context.Context { + ctx := mock.NewContext() + ctx.Store = &mockStore{ + client: &mockClient{}, + } + do := &domain.Domain{} + do.CreateStatsHandle(ctx) + sessionctx.BindDomain(ctx, do) + return ctx +} + +func mockStatsTable(tbl *model.TableInfo, rowCount int64) *statistics.Table { + statsTbl := &statistics.Table{ + TableID: tbl.ID, + Count: rowCount, + Columns: make(map[int64]*statistics.Column, len(tbl.Columns)), + Indices: make(map[int64]*statistics.Index, len(tbl.Indices)), + } + return statsTbl +} + +// mockStatsHistogram will create a statistics.Histogram, of which the data is uniform distribution. +func mockStatsHistogram(id int64, values []types.Datum, repeat int64) *statistics.Histogram { + ndv := len(values) + histogram := &statistics.Histogram{ + ID: id, + NDV: int64(ndv), + Buckets: make([]statistics.Bucket, ndv), + } + for i := 0; i < ndv; i++ { + histogram.Buckets[i].Repeats = repeat + histogram.Buckets[i].Count = repeat * int64(i+1) + histogram.Buckets[i].UpperBound = values[i] + } + return histogram +} + +type mockStore struct { + client *mockClient +} + +func (m *mockStore) GetClient() kv.Client { + return m.client +} + +func (m *mockStore) GetOracle() oracle.Oracle { + return nil +} + +func (m *mockStore) Begin() (kv.Transaction, error) { + return nil, nil +} + +// BeginWithStartTS begins with startTS. +func (m *mockStore) BeginWithStartTS(startTS uint64) (kv.Transaction, error) { + return m.Begin() +} + +func (m *mockStore) GetSnapshot(ver kv.Version) (kv.Snapshot, error) { + return nil, nil +} + +func (m *mockStore) Close() error { + return nil +} + +func (m *mockStore) UUID() string { + return "mock" +} + +func (m *mockStore) CurrentVersion() (kv.Version, error) { + return kv.Version{}, nil +} + +type mockClient struct { +} + +func (c *mockClient) Send(ctx goctx.Context, _ *kv.Request) kv.Response { + return nil +} + +func (c *mockClient) IsRequestTypeSupported(reqType, subType int64) bool { + switch reqType { + case kv.ReqTypeSelect, kv.ReqTypeIndex: + switch subType { + case kv.ReqSubTypeGroupBy, kv.ReqSubTypeBasic, kv.ReqSubTypeTopN: + return true + default: + return supportExpr(tipb.ExprType(subType)) + } + } + return false +} + +func supportExpr(exprType tipb.ExprType) bool { + switch exprType { + // data type + case tipb.ExprType_Null, tipb.ExprType_Int64, tipb.ExprType_Uint64, + tipb.ExprType_Float32, tipb.ExprType_Float64, tipb.ExprType_String, + tipb.ExprType_Bytes, tipb.ExprType_MysqlDuration, tipb.ExprType_MysqlDecimal, + tipb.ExprType_MysqlTime, tipb.ExprType_ColumnRef: + return true + // logic operators + case tipb.ExprType_And, tipb.ExprType_Or, tipb.ExprType_Not, tipb.ExprType_Xor: + return true + // compare operators + case tipb.ExprType_LT, tipb.ExprType_LE, tipb.ExprType_EQ, tipb.ExprType_NE, + tipb.ExprType_GE, tipb.ExprType_GT, tipb.ExprType_NullEQ, + tipb.ExprType_In, tipb.ExprType_ValueList, tipb.ExprType_Like: + return true + // arithmetic operators + case tipb.ExprType_Plus, tipb.ExprType_Div, tipb.ExprType_Minus, + tipb.ExprType_Mul, tipb.ExprType_IntDiv, tipb.ExprType_Mod: + return true + // aggregate functions + case tipb.ExprType_Count, tipb.ExprType_First, tipb.ExprType_Sum, + tipb.ExprType_Avg, tipb.ExprType_Max, tipb.ExprType_Min: + return true + // bitwise operators + case tipb.ExprType_BitAnd, tipb.ExprType_BitOr, tipb.ExprType_BitXor, tipb.ExprType_BitNeg: + return true + // control functions + case tipb.ExprType_Case, tipb.ExprType_If, tipb.ExprType_IfNull, tipb.ExprType_NullIf: + return true + // other functions + case tipb.ExprType_Coalesce, tipb.ExprType_IsNull: + return true + case kv.ReqSubTypeDesc: + return true + default: + return false + } +} From de140aa85756662decccc2133ec1f708c279171f Mon Sep 17 00:00:00 2001 From: zhexuany Date: Mon, 26 Jun 2017 01:47:21 +0800 Subject: [PATCH 14/21] mv internal test sinace share same package name --- plan/{expression_test.go => expression_internal_test.go} | 0 plan/{logical_plan_test.go => logical_plan_internal_test.go} | 0 plan/{physical_plan_test.go => physical_plan_internal_test.go} | 0 plan/{planbuilder_test.go => planbuilder_internal_test.go} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename plan/{expression_test.go => expression_internal_test.go} (100%) rename plan/{logical_plan_test.go => logical_plan_internal_test.go} (100%) rename plan/{physical_plan_test.go => physical_plan_internal_test.go} (100%) rename plan/{planbuilder_test.go => planbuilder_internal_test.go} (100%) diff --git a/plan/expression_test.go b/plan/expression_internal_test.go similarity index 100% rename from plan/expression_test.go rename to plan/expression_internal_test.go diff --git a/plan/logical_plan_test.go b/plan/logical_plan_internal_test.go similarity index 100% rename from plan/logical_plan_test.go rename to plan/logical_plan_internal_test.go diff --git a/plan/physical_plan_test.go b/plan/physical_plan_internal_test.go similarity index 100% rename from plan/physical_plan_test.go rename to plan/physical_plan_internal_test.go diff --git a/plan/planbuilder_test.go b/plan/planbuilder_internal_test.go similarity index 100% rename from plan/planbuilder_test.go rename to plan/planbuilder_internal_test.go From 7b813063aacaefd210c95145a511cb61017935d4 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Mon, 26 Jun 2017 01:59:47 +0800 Subject: [PATCH 15/21] add internal_test flag --- plan/BUILD.bazel | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plan/BUILD.bazel b/plan/BUILD.bazel index 615eda965fce9..1f85eecd4cef0 100644 --- a/plan/BUILD.bazel +++ b/plan/BUILD.bazel @@ -70,10 +70,10 @@ go_library( go_test( name = "go_default_test", srcs = [ - "expression_test.go", - "logical_plan_test.go", - "physical_plan_test.go", - "planbuilder_test.go", + "expression_internal_test.go", + "logical_plan_internal_test.go", + "physical_plan_internal_test.go", + "planbuilder_internal_test.go", ], library = ":go_default_library", deps = [ From c4e175e02b3dc737da997544670d83bbe60dacdb Mon Sep 17 00:00:00 2001 From: zhexuany Date: Mon, 26 Jun 2017 08:53:24 +0800 Subject: [PATCH 16/21] move mock test code to util --- plan/util.go | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/plan/util.go b/plan/util.go index b8e6cec73f600..2d47af4a15dcd 100644 --- a/plan/util.go +++ b/plan/util.go @@ -410,3 +410,42 @@ func supportExpr(exprType tipb.ExprType) bool { return false } } + +type VisitInfoArray []visitInfo + +func (v VisitInfoArray) Len() int { + return len(v) +} + +func (v VisitInfoArray) Less(i, j int) bool { + if v[i].privilege < v[j].privilege { + return true + } + if v[i].db < v[j].db { + return true + } + if v[i].table < v[j].table { + return true + } + if v[i].column < v[j].column { + return true + } + + return false +} + +func (v VisitInfoArray) Swap(i, j int) { + v[i], v[j] = v[j], v[i] +} + +func unique(v []visitInfo) []visitInfo { + repeat := 0 + for i := 1; i < len(v); i++ { + if v[i] == v[i-1] { + repeat++ + } else { + v[i-repeat] = v[i] + } + } + return v[:len(v)-repeat] +} From bd0aed2f3b03ace74df77282ea1493aecc2c77bb Mon Sep 17 00:00:00 2001 From: zhexuany Date: Mon, 26 Jun 2017 10:30:45 +0800 Subject: [PATCH 17/21] fix duplkicated declaration --- plan/util.go | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/plan/util.go b/plan/util.go index 2d47af4a15dcd..b8e6cec73f600 100644 --- a/plan/util.go +++ b/plan/util.go @@ -410,42 +410,3 @@ func supportExpr(exprType tipb.ExprType) bool { return false } } - -type VisitInfoArray []visitInfo - -func (v VisitInfoArray) Len() int { - return len(v) -} - -func (v VisitInfoArray) Less(i, j int) bool { - if v[i].privilege < v[j].privilege { - return true - } - if v[i].db < v[j].db { - return true - } - if v[i].table < v[j].table { - return true - } - if v[i].column < v[j].column { - return true - } - - return false -} - -func (v VisitInfoArray) Swap(i, j int) { - v[i], v[j] = v[j], v[i] -} - -func unique(v []visitInfo) []visitInfo { - repeat := 0 - for i := 1; i < len(v); i++ { - if v[i] == v[i-1] { - repeat++ - } else { - v[i-repeat] = v[i] - } - } - return v[:len(v)-repeat] -} From 5ac15c392fc167bd97eb029397f6eeed528aed04 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Mon, 26 Jun 2017 10:50:05 +0800 Subject: [PATCH 18/21] workaround for bazel test --- build/root/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/root/Makefile b/build/root/Makefile index a3d41cc10c6ee..4366e2e779605 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -175,5 +175,6 @@ bazel-test: bazel test //ddl/... bazel test //terror/... //ast/... //infoschema/... //parser/... //statistics/... --test_output=errors bazel test //domain/... //inspectkv/... //perfschema/... //store/... //util/... --test_output=errors - bazel test //cmd/... //kv/... //plan/... //structure/... //context/... //expression/... --test_output=errors + bazel test //cmd/... //kv/... //structure/... //context/... //expression/... --test_output=errors bazel test //meta/... //privilege/... //table/... //model/... //server/... //tablecodec/... --test_output=errors + cd plan & go test From 28b403a417ae277f4da2ddfdd3cb07915a1ca1fe Mon Sep 17 00:00:00 2001 From: zhexuany Date: Mon, 26 Jun 2017 11:13:08 +0800 Subject: [PATCH 19/21] fix ci failure --- sessionctx/varsutil/varsutil_internal_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sessionctx/varsutil/varsutil_internal_test.go b/sessionctx/varsutil/varsutil_internal_test.go index 9fb25d88d5f54..c4752ecd5df7b 100644 --- a/sessionctx/varsutil/varsutil_internal_test.go +++ b/sessionctx/varsutil/varsutil_internal_test.go @@ -103,7 +103,6 @@ func (s *testVarsutilSuite) TestVarsutil(c *C) { c.Assert(err, IsNil) c.Assert(val, Equals, "1") - zone, _ := time.Now().In(time.Local).Zone() // Test case for time_zone session variable. tests := []struct { input string @@ -113,7 +112,7 @@ func (s *testVarsutilSuite) TestVarsutil(c *C) { }{ {"Europe/Helsinki", "Europe/Helsinki", true, -2 * time.Hour}, {"US/Eastern", "US/Eastern", true, 5 * time.Hour}, - {"SYSTEM", zone, false, 0}, + {"SYSTEM", time.Local.String(), false, 0}, {"+10:00", "UTC", true, -10 * time.Hour}, {"-6:00", "UTC", true, 6 * time.Hour}, } From 63add22d709851ba0c9c093eca2c7cd3d0db9e16 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Mon, 26 Jun 2017 11:42:46 +0800 Subject: [PATCH 20/21] fix ci failure --- plan/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plan/util.go b/plan/util.go index b8e6cec73f600..a6f2814d917ac 100644 --- a/plan/util.go +++ b/plan/util.go @@ -60,6 +60,7 @@ func (a *AggregateFuncExtractor) Leave(n ast.Node) (ast.Node, bool) { return n, true } +// MockTable is used to creare a table for testing. func MockTable() *model.TableInfo { indices := []*model.IndexInfo{ { @@ -257,6 +258,7 @@ func MockTable() *model.TableInfo { return table } +// MockResolve resolves Node. func MockResolve(node ast.Node) (infoschema.InfoSchema, error) { is := infoschema.MockInfoSchema([]*model.TableInfo{MockTable()}) ctx := mockContext() From 348cc41672a783a9260a8678b29672e1ee1b59d4 Mon Sep 17 00:00:00 2001 From: zhexuany Date: Mon, 26 Jun 2017 16:00:33 +0800 Subject: [PATCH 21/21] make bazel test better --- build/root/Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/build/root/Makefile b/build/root/Makefile index 4366e2e779605..c49f29642e19e 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -171,10 +171,4 @@ endif checklist: cat checklist.md bazel-test: - bazel test //executor/... //distsql/... //mysql/... //sessionctx/... --test_output=errors - bazel test //ddl/... - bazel test //terror/... //ast/... //infoschema/... //parser/... //statistics/... --test_output=errors - bazel test //domain/... //inspectkv/... //perfschema/... //store/... //util/... --test_output=errors - bazel test //cmd/... //kv/... //structure/... //context/... //expression/... --test_output=errors - bazel test //meta/... //privilege/... //table/... //model/... //server/... //tablecodec/... --test_output=errors - cd plan & go test + bazel test //:all --test_output=errors