Skip to content

Commit 6c7422a

Browse files
committed
Migrate dependency management to dep
1 parent 82b1e05 commit 6c7422a

File tree

7 files changed

+185
-95
lines changed

7 files changed

+185
-95
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ before_install:
1515
- gem install --no-ri --no-rdoc fpm
1616

1717
install:
18-
- go get -v github.com/Masterminds/glide
19-
- cd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.12.3 && go install && cd - # use a known good glide version
20-
- glide install
18+
- go get -v github.com/golang/dep/cmd/dep
19+
- dep ensure -v -vendor-only
2120

2221
script:
2322
- go test ./...

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM golang:1.9 AS build
22
WORKDIR /go/src/github.com/aquasecurity/kube-bench/
3-
ADD glide.lock glide.yaml ./
4-
RUN go get github.com/Masterminds/glide && glide install
3+
ADD Gopkg.toml Gopkg.lock ./
4+
RUN go get -v github.com/golang/dep/cmd/dep && dep ensure -v -vendor-only
55
ADD main.go .
66
ADD check/ check/
77
ADD cmd/ cmd/

Gopkg.lock

Lines changed: 153 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[[constraint]]
2+
name = "github.com/fatih/color"
3+
version = "1.5.0"
4+
5+
[[constraint]]
6+
branch = "master"
7+
name = "github.com/golang/glog"
8+
9+
[[constraint]]
10+
name = "github.com/jinzhu/gorm"
11+
version = "1.0.0"
12+
13+
[[constraint]]
14+
name = "github.com/spf13/cobra"
15+
version = "0.0.1"
16+
17+
[[constraint]]
18+
name = "github.com/spf13/viper"
19+
version = "1.0.0"
20+
21+
[prune]
22+
go-tests = true
23+
unused-packages = true

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ You can then run `./kube-bench <master|node>`.
6363

6464
If Go is installed on the target machines, you can simply clone this repository and run as follows (assuming your [$GOPATH is set](https://github.com/golang/go/wiki/GOPATH)):
6565

66-
```go get github.com/aquasecurity/kube-bench
67-
go get github.com/Masterminds/glide
66+
```shell
67+
go get github.com/aquasecurity/kube-bench
68+
go get github.com/golang/dep/cmd/dep
6869
cd $GOPATH/src/github.com/aquasecurity/kube-bench
69-
$GOPATH/bin/glide install
70-
go build -o kube-bench .
70+
$GOPATH/bin/dep ensure -vendor-only
71+
go build -o kube-bench .
7172

7273
# See all supported options
7374
./kube-bench --help

glide.lock

Lines changed: 0 additions & 72 deletions
This file was deleted.

glide.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)