Skip to content

Commit 0897c71

Browse files
committed
✨ Update scripts, Dockerfile and Makefile for vendor removal
Signed-off-by: Vince Prignano <vincepri@vmware.com>
1 parent 3c725c4 commit 0897c71

File tree

17 files changed

+187
-56
lines changed

17 files changed

+187
-56
lines changed

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.git
2+
.github
3+
.vscode
4+
bin/
5+
config/
6+
hack/
7+
docs/
8+
logos/
9+
scripts/
10+
**/.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.dylib
66
cmd/clusterctl/clusterctl
77
bin
8+
hack/tools/bin
89

910
# Test binary, build with `go test -c`
1011
*.test

Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,26 @@
1616
FROM golang:1.12.9 as builder
1717

1818
ARG ARCH
19+
WORKDIR /workspace
1920

20-
# Copy in the go src
21-
WORKDIR ${GOPATH}/src/sigs.k8s.io/cluster-api
21+
# Copy the Go Modules manifests
22+
COPY go.mod go.mod
23+
COPY go.sum go.sum
24+
# Cache deps before building and copying source so that we don't need to re-download as much
25+
# and so that source changes don't invalidate our downloaded layer
26+
RUN go mod download
27+
28+
# Copy the sources
2229
COPY ./ ./
2330

2431
# Build
25-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} GO111MODULE=on GOFLAGS="-mod=vendor" \
32+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \
2633
go build -a -ldflags '-extldflags "-static"' \
2734
-o manager .
2835

2936
# Copy the controller-manager into a thin image
3037
FROM gcr.io/distroless/static:latest
3138
WORKDIR /
32-
COPY --from=builder /go/src/sigs.k8s.io/cluster-api/manager .
39+
COPY --from=builder /workspace/manager .
3340
USER nobody
3441
ENTRYPOINT ["/manager"]

Makefile

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,39 @@
1717

1818
.DEFAULT_GOAL:=help
1919

20+
# Use GOPROXY environment variable if set
21+
GOPROXY := $(shell go env GOPROXY)
22+
ifeq ($(GOPROXY),)
23+
GOPROXY := https://proxy.golang.org
24+
endif
25+
export GOPROXY
26+
27+
# Active module mode, as we use go modules to manage dependencies
28+
export GO111MODULE=on
29+
2030
# Default timeout for starting/stopping the Kubebuilder test control plane
2131
export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT ?=60s
2232
export KUBEBUILDER_CONTROLPLANE_STOP_TIMEOUT ?=60s
2333

2434
# This option is for running docker manifest command
2535
export DOCKER_CLI_EXPERIMENTAL := enabled
2636

27-
# Image URL to use all building/pushing image targets
37+
# Directories.
38+
TOOLS_DIR := hack/tools
39+
TOOLS_BIN_DIR := $(TOOLS_DIR)/bin
40+
BIN_DIR := bin
41+
42+
# Binaries.
43+
CONTROLLER_GEN := $(TOOLS_BIN_DIR)/controller-gen
44+
45+
# Define Docker related variables. Releases should modify and double check these vars.
2846
REGISTRY ?= gcr.io/$(shell gcloud config get-value project)
2947
CONTROLLER_IMG ?= $(REGISTRY)/cluster-api-controller
3048
EXAMPLE_PROVIDER_IMG ?= $(REGISTRY)/example-provider-controller
3149
TAG ?= dev
32-
33-
ARCH?=amd64
50+
ARCH ?= amd64
3451
ALL_ARCH = amd64 arm arm64 ppc64le s390x
35-
GOOS?=linux
52+
GOOS ?= linux
3653

3754
all: test manager clusterctl
3855

@@ -57,25 +74,24 @@ test-go: ## Run tests
5774

5875
.PHONY: manager
5976
manager: lint-full ## Build manager binary
60-
go build -o bin/manager sigs.k8s.io/cluster-api
77+
go build -o $(BIN_DIR)/manager sigs.k8s.io/cluster-api
6178

6279
.PHONY: docker-build-manager
6380
docker-build-manager: lint-full ## Build manager binary in docker
6481
docker run --rm \
6582
-v "${PWD}:/go/src/sigs.k8s.io/cluster-api" \
6683
-v "${PWD}/bin:/go/bin" \
6784
-w "/go/src/sigs.k8s.io/cluster-api" \
68-
-e CGO_ENABLED=0 -e GOOS=${GOOS} -e GOARCH=${ARCH} -e GO111MODULE=on -e GOFLAGS="-mod=vendor" \
85+
-e CGO_ENABLED=0 -e GOOS=${GOOS} -e GOARCH=${ARCH} -e GO111MODULE=on \
6986
golang:1.12.6 \
7087
go build -a -ldflags '-extldflags "-static"' -o /go/bin/manager sigs.k8s.io/cluster-api
7188

7289
.PHONY: clusterctl
7390
clusterctl: lint-full ## Build clusterctl binary
7491
go build -o bin/clusterctl sigs.k8s.io/cluster-api/cmd/clusterctl
7592

76-
.PHONY: run
77-
run: lint ## Run against the configured Kubernetes cluster in ~/.kube/config
78-
go run ./main.go
93+
$(CONTROLLER_GEN): $(TOOLS_DIR)/go.mod # Build controller-gen from tools folder.
94+
cd $(TOOLS_DIR); go build -tags=tools -o $(BIN_DIR)/controller-gen sigs.k8s.io/controller-tools/cmd/controller-gen
7995

8096
## --------------------------------------
8197
## Linting
@@ -93,20 +109,20 @@ lint-full: ## Run slower linters to detect possible issues
93109
## --------------------------------------
94110

95111
.PHONY: generate
96-
generate: ## Generate code
112+
generate: $(CONTROLLER_GEN) ## Generate code
97113
$(MAKE) generate-manifests
98114
$(MAKE) generate-deepcopy
99115
$(MAKE) gazelle
100116

101117
.PHONY: generate-deepcopy
102-
generate-deepcopy: ## Runs controller-gen to generate deepcopy files
103-
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go \
118+
generate-deepcopy: $(CONTROLLER_GEN) ## Runs controller-gen to generate deepcopy files
119+
$(CONTROLLER_GEN) \
104120
object:headerFile=./hack/boilerplate/boilerplate.generatego.txt \
105121
paths=./api/...
106122

107123
.PHONY: generate-manifests
108-
generate-manifests: ## Generate manifests e.g. CRD, RBAC etc.
109-
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go \
124+
generate-manifests: $(CONTROLLER_GEN) ## Generate manifests e.g. CRD, RBAC etc.
125+
$(CONTROLLER_GEN) \
110126
paths=./api/... \
111127
paths=./controllers/... \
112128
crd:trivialVersions=true \
@@ -120,9 +136,9 @@ generate-manifests: ## Generate manifests e.g. CRD, RBAC etc.
120136
gazelle: ## Run Bazel Gazelle
121137
(which bazel && ./hack/update-bazel.sh) || true
122138

123-
.PHONY: vendor
124-
vendor: ## Runs go mod to ensure proper vendoring.
125-
./hack/update-vendor.sh
139+
.PHONY: modules
140+
modules: ## Runs go mod to ensure modules are up to date.
141+
./hack/update-modules.sh
126142
$(MAKE) gazelle
127143

128144
## --------------------------------------
@@ -190,6 +206,7 @@ clean-bazel: ## Remove all generated bazel symlinks
190206
.PHONY: clean-bin
191207
clean-bin: ## Remove all generated binaries
192208
rm -rf bin
209+
rm -rf hack/tools/bin
193210

194211
.PHONY: clean-clientset
195212
clean-clientset: ## Remove all generated clientset files

cmd/example-provider/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,16 @@
1616
FROM golang:1.12.9 as builder
1717

1818
ARG ARCH
19+
WORKDIR /workspace
1920

20-
# Copy in the go src
21-
WORKDIR $GOPATH/src/sigs.k8s.io/cluster-api
21+
# Copy the Go Modules manifests
22+
COPY go.mod go.mod
23+
COPY go.sum go.sum
24+
# Cache deps before building and copying source so that we don't need to re-download as much
25+
# and so that source changes don't invalidate our downloaded layer
26+
RUN go mod download
27+
28+
# Copy the sources
2229
COPY ./ ./
2330

2431
# Build
@@ -29,5 +36,5 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \
2936
# Copy the controller-manager into a thin image
3037
FROM gcr.io/distroless/static:latest
3138
WORKDIR /
32-
COPY --from=builder /go/src/sigs.k8s.io/cluster-api/manager .
39+
COPY --from=builder /workspace/manager .
3340
ENTRYPOINT ["/manager"]

go.mod

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@ require (
66
github.com/Azure/go-autorest/autorest v0.2.0 // indirect
77
github.com/davecgh/go-spew v1.1.1
88
github.com/go-logr/logr v0.1.0
9+
github.com/gogo/protobuf v1.2.1 // indirect
10+
github.com/google/go-cmp v0.3.0 // indirect
911
github.com/gophercloud/gophercloud v0.2.0 // indirect
12+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
13+
github.com/json-iterator/go v1.1.6 // indirect
14+
github.com/modern-go/reflect2 v1.0.1 // indirect
1015
github.com/onsi/ginkgo v1.8.0
1116
github.com/onsi/gomega v1.5.0
1217
github.com/pkg/errors v0.8.1
1318
github.com/sergi/go-diff v1.0.0
1419
github.com/spf13/cobra v0.0.3
1520
github.com/spf13/pflag v1.0.3
1621
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980
22+
golang.org/x/sys v0.0.0-20190429190828-d89cdac9e872 // indirect
23+
golang.org/x/text v0.3.2 // indirect
1724
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
1825
k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
1926
k8s.io/apiextensions-apiserver v0.0.0-20190409022649-727a075fdec8
@@ -24,6 +31,5 @@ require (
2431
k8s.io/klog v0.4.0
2532
k8s.io/utils v0.0.0-20190506122338-8fab8cb257d5
2633
sigs.k8s.io/controller-runtime v0.2.0
27-
sigs.k8s.io/controller-tools v0.2.0
28-
sigs.k8s.io/testing_frameworks v0.1.2-0.20190130140139-57f07443c2d4
34+
sigs.k8s.io/testing_frameworks v0.1.2-0.20190130140139-57f07443c2d4 // indirect
2935
)

go.sum

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1
3636
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
3737
github.com/evanphx/json-patch v4.5.0+incompatible h1:ouOWdg56aJriqS0huScTkVXPC5IcNrDCXZ6OoTAWu7M=
3838
github.com/evanphx/json-patch v4.5.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
39-
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
40-
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
4139
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
4240
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
4341
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
@@ -48,8 +46,6 @@ github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7
4846
github.com/go-logr/zapr v0.1.0 h1:h+WVe9j6HAA01niTJPA/kKH0i7e0rLZBCwauQFcRE54=
4947
github.com/go-logr/zapr v0.1.0/go.mod h1:tabnROwaDl0UNxkVeFRbY8bwB37GwRv0P8lg6aAiEnk=
5048
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
51-
github.com/gobuffalo/flect v0.1.5 h1:xpKq9ap8MbYfhuPCF0dBH854Gp9CxZjr/IocxELFflo=
52-
github.com/gobuffalo/flect v0.1.5/go.mod h1:W3K3X9ksuZfir8f/LrfVtWmCDQFfayuylOJ7sz/Fj80=
5349
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
5450
github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
5551
github.com/gogo/protobuf v1.2.1 h1:/s5zKNz0uPFCZ5hddgPdo2TK2TVrUNMn0OOX8/aZMTE=
@@ -98,10 +94,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
9894
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
9995
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
10096
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
101-
github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU=
102-
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
103-
github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE=
104-
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
10597
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
10698
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
10799
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
@@ -184,8 +176,6 @@ golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73r
184176
golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
185177
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
186178
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
187-
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09 h1:KaQtG+aDELoNmXYas3TVkGNYRuq8JQ1aa7LJt8EXVyo=
188-
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
189179
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980 h1:dfGZHvZk057jK2MCeWus/TowKpJ8y4AmooUzdBSR9GU=
190180
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
191181
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
@@ -205,7 +195,6 @@ golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5h
205195
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
206196
golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
207197
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
208-
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
209198
golang.org/x/sys v0.0.0-20190429190828-d89cdac9e872 h1:cGjJzUd8RgBw428LXP65YXni0aiGNA4Bl+ls8SmLOm8=
210199
golang.org/x/sys v0.0.0-20190429190828-d89cdac9e872/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
211200
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -219,8 +208,6 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm
219208
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
220209
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
221210
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
222-
golang.org/x/tools v0.0.0-20190501045030-23463209683d h1:D7DVZUZEUgsSIDTivnUtVeGfN5AvhDIKtdIZAqx0ieE=
223-
golang.org/x/tools v0.0.0-20190501045030-23463209683d/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
224211
gomodules.xyz/jsonpatch/v2 v2.0.1 h1:xyiBuvkD2g5n7cYzx6u2sxQvsAy4QJsZFCzGVdzOXZ0=
225212
gomodules.xyz/jsonpatch/v2 v2.0.1/go.mod h1:IhYNNY4jnS53ZnfE4PAmpKtDpTCj1JFXc+3mwe7XcUU=
226213
google.golang.org/api v0.3.1 h1:oJra/lMfmtm13/rgY/8i3MzjFWYXvQIAKjQ3HqofMk8=
@@ -263,10 +250,7 @@ k8s.io/apiserver v0.0.0-20190409021813-1ec86e4da56c/go.mod h1:6bqaTSOSJavUIXUtfa
263250
k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible h1:U5Bt+dab9K8qaUmXINrkXO135kA11/i5Kg1RUydgaMQ=
264251
k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible/go.mod h1:7vJpHMYJwNQCWgzmNV+VYUl1zCObLyodBc8nIyt8L5s=
265252
k8s.io/component-base v0.0.0-20190409021516-bd2732e5c3f7 h1:f+AySqWvoqyCD7aArN3EZ+g2boKIS52pcSo6zdZkc+4=
266-
k8s.io/component-base v0.0.0-20190409021516-bd2732e5c3f7 h1:f+AySqWvoqyCD7aArN3EZ+g2boKIS52pcSo6zdZkc+4=
267-
k8s.io/component-base v0.0.0-20190409021516-bd2732e5c3f7/go.mod h1:DMaomcf3j3MM2j1FsvlLVVlc7wA2jPytEur3cP9zRxQ=
268253
k8s.io/component-base v0.0.0-20190409021516-bd2732e5c3f7/go.mod h1:DMaomcf3j3MM2j1FsvlLVVlc7wA2jPytEur3cP9zRxQ=
269-
k8s.io/klog v0.2.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
270254
k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk=
271255
k8s.io/klog v0.4.0 h1:lCJCxf/LIowc2IGS9TPjWDyXY4nOmdGdfcwwDQCOURQ=
272256
k8s.io/klog v0.4.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I=
@@ -276,8 +260,6 @@ k8s.io/utils v0.0.0-20190506122338-8fab8cb257d5 h1:VBM/0P5TWxwk+Nw6Z+lAw3DKgO76g
276260
k8s.io/utils v0.0.0-20190506122338-8fab8cb257d5/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew=
277261
sigs.k8s.io/controller-runtime v0.2.0 h1:5gL30PXOisGZl+Osi4CmLhvMUj77BO3wJeouKF2va50=
278262
sigs.k8s.io/controller-runtime v0.2.0/go.mod h1:ZHqrRDZi3f6BzONcvlUxkqCKgwasGk5FZrnSv9TVZF4=
279-
sigs.k8s.io/controller-tools v0.2.0 h1:AmQ/0JKBJAjyAiPAkrAf9QW06jkx2lc5hpxMjamsFpw=
280-
sigs.k8s.io/controller-tools v0.2.0/go.mod h1:8t/X+FVWvk6TaBcsa+UKUBbn7GMtvyBKX30SGl4em6Y=
281263
sigs.k8s.io/testing_frameworks v0.1.1/go.mod h1:VVBKrHmJ6Ekkfz284YKhQePcdycOzNH9qL6ht1zEr/U=
282264
sigs.k8s.io/testing_frameworks v0.1.2-0.20190130140139-57f07443c2d4 h1:GtDhkj3cF4A4IW+A9LScsuxvJqA9DE7G7PGH1f8B07U=
283265
sigs.k8s.io/testing_frameworks v0.1.2-0.20190130140139-57f07443c2d4/go.mod h1:VVBKrHmJ6Ekkfz284YKhQePcdycOzNH9qL6ht1zEr/U=

go.vendor

Whitespace-only changes.

hack/ensure-go.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ verify_go_version
4646

4747
# Explicitly opt into go modules, even though we're inside a GOPATH directory
4848
export GO111MODULE=on
49-
export GOFLAGS="-mod=vendor"

hack/tools/go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module sigs.k8s.io/cluster-api/hack/tools
2+
3+
go 1.12
4+
5+
require (
6+
sigs.k8s.io/controller-tools v0.2.0
7+
sigs.k8s.io/testing_frameworks v0.1.1
8+
)

0 commit comments

Comments
 (0)