Skip to content

Commit

Permalink
use dep to lock Go dependencies (without vendor/)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
  • Loading branch information
ahmetb committed Jul 31, 2018
1 parent 58e1879 commit 4572974
Show file tree
Hide file tree
Showing 9 changed files with 771 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# block vgo cache dir
v/
# temp gopath
github.com
golang.org
google.golang.org
cloud.google.com
go.opencensus.io
# Go: for the time being we are not checking in the vendor/ directories to git
# to prevent the repo from getting larger forever. In each Go service, you can
# run "dep ensure --vendor-only" to download the dependencies to vendor/ based
# on the Gopkg.{toml,lock} files in that directory.
vendor/
216 changes: 216 additions & 0 deletions src/checkoutservice/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions src/checkoutservice/Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "cloud.google.com/go"
version = "0.25.0"

[[constraint]]
name = "github.com/golang/protobuf"
version = "1.1.0"

[[constraint]]
name = "github.com/google/uuid"
version = "0.2.0"

[[constraint]]
name = "go.opencensus.io"
version = "0.14.0"

[[constraint]]
branch = "master"
name = "golang.org/x/net"

[[constraint]]
name = "google.golang.org/grpc"
version = "1.13.0"

[prune]
go-tests = true
unused-packages = true
Loading

0 comments on commit 4572974

Please sign in to comment.