Skip to content

Commit 0a88ca7

Browse files
authored
Merge pull request #31 from ovotech/add-go-mod
Add go mod
2 parents 7b15338 + f28e0a6 commit 0a88ca7

File tree

3 files changed

+309
-4
lines changed

3 files changed

+309
-4
lines changed

.circleci/config.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
<<: *defaults
88

99
docker:
10-
- image: circleci/golang:1.10
10+
- image: circleci/golang:1.12
1111

1212
steps:
1313
- checkout
@@ -41,7 +41,10 @@ jobs:
4141

4242
- run:
4343
name: go vet
44-
command: go vet ./...
44+
command: |
45+
export GO111MODULE=on
46+
go mod download
47+
go vet ./...
4548
4649
go_cyclo:
4750
<<: *defaults
@@ -80,7 +83,9 @@ jobs:
8083

8184
- run:
8285
name: go build
83-
command: go build
86+
command: |
87+
export GO111MODULE=on
88+
go build
8489
8590
go_test:
8691
<<: *defaults
@@ -93,7 +98,10 @@ jobs:
9398

9499
- run:
95100
name: go test
96-
command: go test ./...
101+
command: |
102+
export GO111MODULE=on
103+
go mod download
104+
go test ./...
97105
98106
workflows:
99107
version: 2

go.mod

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
module github.com/ovotech/cloud-key-rotator
2+
3+
go 1.12
4+
5+
require (
6+
github.com/aws/aws-sdk-go v1.19.11 // indirect
7+
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96 // indirect
8+
github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e // indirect
9+
github.com/evanphx/json-patch v0.0.0-20190203023257-5858425f7550 // indirect
10+
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903 // indirect
11+
github.com/golang/mock v1.2.0 // indirect
12+
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf // indirect
13+
github.com/google/uuid v0.0.0-20171113160352-8c31c18f31ed // indirect
14+
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d // indirect
15+
github.com/json-iterator/go v0.0.0-20180701071628-ab8a2e0c74be // indirect
16+
github.com/jszwedko/go-circleci v0.2.0
17+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
18+
github.com/modern-go/reflect2 v1.0.1 // indirect
19+
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
20+
github.com/ovotech/cloud-key-client v0.0.0-20190308153018-b87014241d7f
21+
github.com/ovotech/mantle v0.0.0-20190313113039-b525d8003135
22+
github.com/spf13/cobra v0.0.3
23+
github.com/spf13/viper v1.3.2
24+
go.uber.org/atomic v1.3.2 // indirect
25+
go.uber.org/multierr v1.1.0 // indirect
26+
go.uber.org/zap v1.9.1
27+
golang.org/x/crypto v0.0.0-20190404164418-38d8ce5564a5
28+
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a
29+
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
30+
google.golang.org/api v0.3.0
31+
gopkg.in/inf.v0 v0.9.0 // indirect
32+
gopkg.in/src-d/go-git.v4 v4.10.0
33+
k8s.io/api v0.0.0-20190313235455-40a48860b5ab
34+
k8s.io/apimachinery v0.0.0-20190313205120-d7deff9243b1
35+
k8s.io/client-go v11.0.0+incompatible
36+
k8s.io/klog v0.0.0-20190306015804-8e90cee79f82 // indirect
37+
k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30 // indirect
38+
k8s.io/utils v0.0.0-20190308190857-21c4ce38f2a7 // indirect
39+
sigs.k8s.io/yaml v1.1.0 // indirect
40+
)

0 commit comments

Comments
 (0)