mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 05:55:42 +08:00
Remove godep references and add docs for modules
This commit is contained in:
committed by
Andrew Lytvynov
parent
ad59af2220
commit
16031edaff
+1
-1
@@ -19,4 +19,4 @@ If your patch depends on new packages, the dependencies must:
|
||||
|
||||
- be licensed via Apache2 license
|
||||
- be approved by core Teleport contributors ahead of time
|
||||
- a dependency package must be vendored via [`godep`](https://github.com/tools/godep)
|
||||
- a dependency package must be vendored as a [Go module](https://blog.golang.org/using-go-modules)
|
||||
|
||||
Generated
-1537
File diff suppressed because it is too large
Load Diff
-224
@@ -1,224 +0,0 @@
|
||||
|
||||
# Gopkg.toml example
|
||||
#
|
||||
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
|
||||
# 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"
|
||||
|
||||
ignored = ["github.com/Sirupsen/logrus", "github.com/gravitational/license/generate*", "github.com/gravitational/license/authority*", "github.com/cloudflare/cfssl*"]
|
||||
|
||||
[prune]
|
||||
go-tests = true
|
||||
unused-packages = true
|
||||
non-go = true
|
||||
|
||||
[[override]]
|
||||
name = "github.com/alecthomas/template"
|
||||
branch = "master"
|
||||
|
||||
[[override]]
|
||||
name = "github.com/alecthomas/units"
|
||||
branch = "master"
|
||||
|
||||
[[override]]
|
||||
name = "github.com/cenkalti/backoff"
|
||||
version = ">=1.0.0, <=19.0.0-g5d150e7"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/johannesboyne/gofakes3"
|
||||
branch = "master"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/armon/go-radix"
|
||||
branch = "master"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/google/btree"
|
||||
branch = "master"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/gogo/protobuf"
|
||||
version = "v1.1.1"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/mattn/go-sqlite3"
|
||||
version = "v1.10.0"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/vulcand/predicate"
|
||||
version = "v1.1.0"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/docker/docker"
|
||||
revision = "1ef1cc8388165b2b848f9b3f53ec91c87de09f63"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/aws/aws-sdk-go"
|
||||
version = "1.32.7"
|
||||
|
||||
[[constraint]]
|
||||
name = "go.etcd.io/etcd"
|
||||
version = "3.3.15"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/davecgh/go-spew"
|
||||
version = "1.1.0"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "github.com/gokyle/hotp"
|
||||
|
||||
[[constraint]]
|
||||
name = "golang.org/x/crypto"
|
||||
branch = "master"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "golang.org/x/net"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/google/gops"
|
||||
version = ">=0.3.1, <=12.0.0-gccfb39d"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "github.com/gravitational/form"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/gravitational/kingpin"
|
||||
revision = "742f2714c145075a68df26ccc25bc05545310f3a"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/gravitational/roundtrip"
|
||||
version = "1.0.0"
|
||||
|
||||
[[constraint]]
|
||||
version = "0.0.1"
|
||||
name = "github.com/gravitational/ttlmap"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/julienschmidt/httprouter"
|
||||
version = ">=1.0.0, <=64.0.0-gb428fda"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "github.com/kardianos/osext"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/kr/pty"
|
||||
version = "1.0.0"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/mailgun/lemma"
|
||||
version = ">=0.0.2, <=1.0.0-gc98f59f"
|
||||
|
||||
[[constraint]]
|
||||
version = "1.0.2"
|
||||
name = "github.com/gravitational/oxy"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/pborman/uuid"
|
||||
version = ">=1.0.0, <=11.0.0-gc55201b"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/prometheus/client_golang"
|
||||
version = "1.0.0"
|
||||
|
||||
[[override]]
|
||||
name = "github.com/prometheus/procfs"
|
||||
version = "v0.0.2"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/prometheus/common"
|
||||
version = "0.4.1"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "github.com/russellhaering/goxmldsig"
|
||||
|
||||
[[constraint]]
|
||||
name = "google.golang.org/grpc"
|
||||
version = ">=1.23.0"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/gravitational/trace"
|
||||
version = "1.1.6"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/coreos/go-oidc"
|
||||
version = "0.0.3"
|
||||
source = "github.com/gravitational/go-oidc"
|
||||
|
||||
[[override]]
|
||||
name = "github.com/sirupsen/logrus"
|
||||
source = "github.com/gravitational/logrus"
|
||||
version = "1.0.0"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/russellhaering/gosaml2"
|
||||
revision = "8908227c114abe0b63b1f0606abae72d11bf632a"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/gravitational/reporting"
|
||||
version = "0.0.6"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/gravitational/license"
|
||||
version = "0.0.6"
|
||||
|
||||
[[constraint]]
|
||||
name = "gopkg.in/yaml.v2"
|
||||
version = "v2.2.8"
|
||||
|
||||
[[override]]
|
||||
name = "k8s.io/api"
|
||||
version = "v0.17.3"
|
||||
|
||||
[[override]]
|
||||
name = "k8s.io/apimachinery"
|
||||
version = "v0.17.3"
|
||||
|
||||
[[constraint]]
|
||||
version = "v0.17.3"
|
||||
name = "k8s.io/client-go"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/golang/protobuf"
|
||||
version = "=v1.3.1"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/Microsoft/go-winio"
|
||||
version = "=v0.4.9"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/jonboulle/clockwork"
|
||||
branch = "master"
|
||||
|
||||
[[constraint]]
|
||||
name = "cloud.google.com/go"
|
||||
version = "=v0.41.0"
|
||||
|
||||
[[override]]
|
||||
name = "github.com/iovisor/gobpf"
|
||||
source = "github.com/gravitational/gobpf"
|
||||
version = "=v0.0.1"
|
||||
|
||||
[[override]]
|
||||
name = "github.com/json-iterator/go"
|
||||
version = "v1.1.9"
|
||||
|
||||
@@ -501,3 +501,8 @@ init-webapps-submodules-e:
|
||||
init-submodules-e: init-webapps-submodules-e
|
||||
git submodule init e
|
||||
git submodule update
|
||||
|
||||
.PHONY: update-vendor
|
||||
update-vendor:
|
||||
go mod tidy
|
||||
go mod vendor
|
||||
|
||||
@@ -137,6 +137,59 @@ make run-docs
|
||||
|
||||
For more details, take a look at [docs/README](docs/README.md)
|
||||
|
||||
### Managing dependencies
|
||||
|
||||
Dependencies are managed using [Go
|
||||
modules](https://blog.golang.org/using-go-modules). Here are instructions for
|
||||
some common tasks:
|
||||
|
||||
#### add a new dependency
|
||||
|
||||
Latest version:
|
||||
|
||||
```
|
||||
go get github.com/new/dependency
|
||||
# Update the source to actually use this dependency, then run:
|
||||
make update-vendor
|
||||
```
|
||||
|
||||
Specific version:
|
||||
|
||||
```
|
||||
go get github.com/new/dependency@version
|
||||
# Update the source to actually use this dependency, then run:
|
||||
make update-vendor
|
||||
```
|
||||
|
||||
#### set dependency to a specific version
|
||||
|
||||
```
|
||||
go get github.com/new/dependency@version
|
||||
make update-vendor
|
||||
```
|
||||
|
||||
#### update dependency to the latest version
|
||||
|
||||
```
|
||||
go get -u github.com/new/dependency
|
||||
make update-vendor
|
||||
```
|
||||
|
||||
#### update all dependencies
|
||||
|
||||
```
|
||||
go get -u all
|
||||
make update-vendor
|
||||
```
|
||||
|
||||
#### debugging dependencies
|
||||
|
||||
Why is a specific package imported: `go mod why $pkgname`.
|
||||
|
||||
Why is a specific module imported: `go mod why -m $modname`.
|
||||
|
||||
Why is a specific version of a module imported: `go mod graph | grep $modname`.
|
||||
|
||||
## Why did We Build Teleport?
|
||||
|
||||
The Teleport creators used to work together at Rackspace. We noticed that most
|
||||
|
||||
Reference in New Issue
Block a user