# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.

required = [
  "k8s.io/apimachinery/pkg/util/sets/types",
  "k8s.io/code-generator/cmd/deepcopy-gen",
  "k8s.io/code-generator/cmd/defaulter-gen",
  "k8s.io/code-generator/cmd/client-gen",
  "k8s.io/code-generator/cmd/lister-gen",
  "k8s.io/code-generator/cmd/informer-gen",
  "knative.dev/pkg/codegen/cmd/injection-gen",
  "knative.dev/pkg/testutils/clustermanager/perf-tests",
  "knative.dev/test-infra/scripts",
  "knative.dev/test-infra/tools/dep-collector",
  "contrib.go.opencensus.io/exporter/ocagent",
]

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

[[prune.project]]
  name = "k8s.io/code-generator"
  unused-packages = false
  non-go = false

[[prune.project]]
  name = "knative.dev/test-infra"
  non-go = false

[[prune.project]]
  name = "knative.dev/pkg"
  unused-packages = false
  non-go = false

# Our master branch tracks knative/pkg master or a release.
[[override]]
  name = "knative.dev/pkg"
  branch = "release-0.13"

# TODO why is this overridden?
[[override]]
  name = "gopkg.in/yaml.v2"
  version = "v2.2.4"

# Overridden to ensure compatibility with GKE
# GKE version as of 2020-01-06 is 1.15
[[override]]
  name = "k8s.io/api"
  version = "kubernetes-1.16.4"

# Overridden to ensure compatibility with GKE
# GKE version as of 2020-01-06 is 1.15
[[override]]
  name = "k8s.io/apimachinery"
  version = "kubernetes-1.16.4"

# Overridden to ensure compatibility with GKE
# GKE version as of 2020-01-06 is 1.15
[[override]]
  name = "k8s.io/apiextensions-apiserver"
  version = "kubernetes-1.16.4"

# Overridden to ensure compatibility with GKE
# GKE version as of 2020-01-06 is 1.15
[[override]]
  name = "k8s.io/code-generator"
  version = "kubernetes-1.16.4"

# Overridden to ensure compatibility with GKE
# GKE version as of 2020-01-06 is 1.15
[[override]]
  name = "k8s.io/client-go"
  version = "kubernetes-1.16.4"

[[override]]
  name = "github.com/json-iterator/go"
  # For k8s 1.16.4, the corresponding version is v1.1.7
  # https://github.com/kubernetes/kubernetes/blob/v1.16.4/go.mod#L81
  version = "v1.1.7"

[[override]]
  name = "contrib.go.opencensus.io/exporter/ocagent"
  version = "v0.6.0"

# TODO why is this overridden?
[[override]]
  name = "github.com/Shopify/sarama"
  version = "1.19.0"

[[constraint]]
  name = "github.com/cloudevents/sdk-go"
  revision = "427e8cf75237fdc7d4bb6c496398d7288efb8921"

# needed because pkg upgraded
[[override]]
  name = "go.uber.org/zap"
  revision = "67bc79d13d155c02fd008f721863ff8cc5f30659"

# Required for opencensus.
[[override]]
  name = "google.golang.org/genproto"
  revision = "357c62f0e4bbba7e6cc403ae09edcf3e2b9028fe"

# Required for opencensus.
[[constraint]]
  name = "go.opencensus.io"
  version = "0.22.0"

# Required for opencensus.
[[override]]
  name = "github.com/census-instrumentation/opencensus-proto"
  version = "0.2.0"

# Required for opencensus.
[[override]]
  name="github.com/golang/protobuf"
  version = "1.3.2"

[[constraint]]
  name = "github.com/tsenart/vegeta"
  version = "12.7.0"

[[constraint]]
  name = "contrib.go.opencensus.io/exporter/ocagent"
  version = "0.6.0"
