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

⛵️ Move k8s.io/test-infra over to dep #5301

Merged
merged 4 commits into from
Nov 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
451 changes: 0 additions & 451 deletions Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

227 changes: 227 additions & 0 deletions Gopkg.lock

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

77 changes: 77 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Gopkg.toml for k8s.io/test-infra

# Ignore AWS SDK used by jenkins/aws-janitor
ignored = ["github.com/aws/aws-sdk-go*"]

[[constraint]]
name = "github.com/NYTimes/gziphandler"

[[constraint]]
name = "github.com/bwmarrin/snowflake"

[[constraint]]
name = "github.com/ghodss/yaml"

[[constraint]]
name = "github.com/golang/glog"

[[constraint]]
name = "github.com/golang/lint"

[[constraint]]
name = "github.com/golang/mock"

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

[[constraint]]
name = "github.com/google/go-github"

[[constraint]]
name = "github.com/google/gofuzz"

[[constraint]]
name = "github.com/gregjones/httpcache"

[[constraint]]
name = "github.com/influxdata/influxdb"

[[constraint]]
name = "github.com/jinzhu/gorm"

[[constraint]]
name = "github.com/peterbourgon/diskv"

[[constraint]]
name = "github.com/prometheus/client_golang"
version = "0.8.0"

[[constraint]]
name = "github.com/satori/go.uuid"

[[constraint]]
name = "github.com/shurcooL/githubql"

[[constraint]]
name = "github.com/sirupsen/logrus"

[[constraint]]
name = "github.com/spf13/cobra"

[[constraint]]
name = "github.com/spf13/pflag"

[[constraint]]
name = "golang.org/x/crypto"

[[constraint]]
name = "golang.org/x/oauth2"

[[constraint]]
name = "gopkg.in/yaml.v2"

[[constraint]]
name = "k8s.io/contrib"

[[constraint]]
name = "k8s.io/kubernetes"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ test jobs for a variety of platforms (e.g., Azure, rktnetes). The test-history
scripts gather e2e results from these federated jobs. For information about
how to contribute test results, see [Federated Testing](docs/federated_testing.md).

## Other Docs

* [kubernetes/test-infra dependency management](docs/dep.md)


[`jobs/config.json`]: https://github.com/kubernetes/test-infra/blob/master/jobs/config.json
[`prow/config.yaml`]: https://github.com/kubernetes/test-infra/blob/master/prow/config.yaml
Expand Down
26 changes: 26 additions & 0 deletions docs/dep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# kubernetes/test-infra dependency management
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we link to this from the main README so contributors can find it without digging too much?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


test-infra uses [`dep`](https://github.com/golang/dep) for Go dependency
management. `dep` is a prototype dependency management tool for Go. It requires
Go 1.8 or newer to compile.


## Setup

You can follow the [setup instructions](https://github.com/golang/dep#setup) to
set up `dep` in your local environment.


## Changing dependencies

You can use the `dep` instructions for [adding](https://github.com/golang/dep#adding-a-dependency),
[updating](https://github.com/golang/dep#updating-dependencies) or
[removing](https://github.com/golang/dep#removing-dependencies) a dependency.

Once you've updated, make sure to run:
```
dep prune
verify/update-bazel.sh
```

To prune unneeded deps, and then update all the bazel files that `dep` blows away.
Loading