Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Go Modules #529

Merged
merged 12 commits into from
Jun 13, 2019
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ go_import_path: github.com/google/certificate-transparency-go


env:
global:
- GO111MODULE=on
matrix:
- GOFLAGS=
- GOFLAGS=-race
- GOFLAGS=-race NO_LINTER=true
gdbelvin marked this conversation as resolved.
Show resolved Hide resolved
- GOFLAGS= WITH_ETCD=true WITH_COVERAGE=true
- GOFLAGS=-race WITH_ETCD=true
- GOFLAGS=-race WITH_ETCD=true NO_LINTER=true

matrix:
fast_finish: true

cache:
directories:
- "$HOME/gopath/pkg/mod"

services:
- docker
- mysql
Expand All @@ -28,26 +35,23 @@ install:
unzip protoc-3.5.1-${TRAVIS_OS_NAME}-x86_64.zip
)
- export PATH=$(pwd)/../protoc/bin:$PATH
- go get -d -t ./...
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1
- go get -u github.com/golang/protobuf/proto
- go get -u github.com/golang/protobuf/protoc-gen-go
- go get -u github.com/golang/mock/mockgen
# install vendored etcd binary
- go get -u ./vendor/github.com/coreos/etcd/cmd/etcd
- go get -u ./vendor/github.com/coreos/etcd/cmd/etcdctl
- pushd ${GOPATH}/src/github.com/google/trillian
- go get -d -t ./...
- popd
- go mod download
- go install
github.com/golangci/golangci-lint/cmd/golangci-lint
github.com/golang/protobuf/proto
github.com/golang/protobuf/protoc-gen-go
github.com/golang/mock/mockgen
go.etcd.io/etcd
go.etcd.io/etcd/etcdctl

before_script:
- ${GOPATH}/src/github.com/google/trillian/scripts/resetdb.sh --force
- bash $(go list -f '{{.Dir}}' github.com/google/trillian)/scripts/resetdb.sh --force
- ./scripts/resetctdb.sh --force

script:
- set -e
- cd $HOME/gopath/src/github.com/google/certificate-transparency-go
- ./scripts/presubmit.sh ${PRESUBMIT_OPTS} ${WITH_COVERAGE:+--coverage}
- ./scripts/presubmit.sh ${PRESUBMIT_OPTS} ${WITH_COVERAGE:+--coverage} ${NO_LINTER:+--no-linters}
gdbelvin marked this conversation as resolved.
Show resolved Hide resolved
- |
# Check re-generation didn't change anything
status=$(git status --porcelain | grep -v coverage) || :
Expand Down
61 changes: 61 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
module github.com/google/certificate-transparency-go

go 1.12

require (
contrib.go.opencensus.io/exporter/stackdriver v0.12.1 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/coreos/bbolt v1.3.2 // indirect
github.com/coreos/etcd v3.3.13+incompatible
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/go-sql-driver/mysql v1.4.1
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect
github.com/golang/mock v1.2.0
github.com/golang/protobuf v1.3.1
github.com/golangci/golangci-lint v1.17.1
github.com/google/btree v1.0.0 // indirect
github.com/google/go-cmp v0.3.0
github.com/google/monologue v0.0.0-20190606152607-4b11a32b5934
github.com/google/trillian v1.2.2-0.20190612132142-05461f4df60a
github.com/google/trillian-examples v0.0.0-20190603134952-4e75ba15216c
github.com/gorilla/websocket v1.4.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.9.0 // indirect
github.com/jonboulle/clockwork v0.1.0 // indirect
github.com/juju/ratelimit v1.0.1
github.com/kylelemons/godebug v1.1.0
github.com/letsencrypt/pkcs11key v2.0.0+incompatible // indirect
github.com/lib/pq v1.1.1 // indirect
github.com/mattn/go-runewidth v0.0.4 // indirect
github.com/mattn/go-sqlite3 v1.10.0
github.com/miekg/pkcs11 v1.0.2 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
github.com/olekukonko/tablewriter v0.0.1 // indirect
github.com/prometheus/client_golang v0.9.4
github.com/rs/cors v1.6.0
github.com/sergi/go-diff v1.0.0
github.com/soheilhy/cmux v0.1.4 // indirect
github.com/spf13/cobra v0.0.5 // indirect
github.com/stretchr/testify v1.3.0
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce
github.com/urfave/cli v1.20.0 // indirect
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
go.etcd.io/bbolt v1.3.2 // indirect
go.etcd.io/etcd v3.3.13+incompatible
go.uber.org/atomic v1.4.0 // indirect
go.uber.org/multierr v1.1.0 // indirect
go.uber.org/zap v1.10.0 // indirect
golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a
golang.org/x/net v0.0.0-20190606173856-1492cefac77f
google.golang.org/api v0.6.0 // indirect
google.golang.org/genproto v0.0.0-20190605220351-eb0b1bdb6ae6
google.golang.org/grpc v1.21.1
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
)
Loading