Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Commit 21a65ec

Browse files
authored
Merge pull request #110 from LukeShu/lukeshu/generate
Miscellaneous generate script changes
2 parents db7ff61 + 63df386 commit 21a65ec

File tree

49 files changed

+24294
-7962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+24294
-7962
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ go:
99
services:
1010
- docker
1111

12+
addons:
13+
apt:
14+
packages:
15+
- bsdtar
16+
1217
env:
1318
- K8S_CLIENT_TEST=1 KUBECONFIG=scripts/kubeconfig
1419

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KUBE_VERSION=1.10.1
1+
KUBE_VERSION=1.13.2
22

33
build:
44
go build -v ./...
@@ -13,23 +13,23 @@ test-examples:
1313

1414
.PHONY: generate
1515
generate: _output/kubernetes _output/bin/protoc _output/bin/gomvpkg _output/bin/protoc-gen-gofast _output/src/github.com/golang/protobuf
16-
./scripts/generate.sh
17-
go run scripts/register.go
16+
GO111MODULE=off ./scripts/generate.sh
17+
GO111MODULE=off go run scripts/register.go
1818
cp scripts/json.go.partial apis/meta/v1/json.go
1919

2020
.PHONY: verify-generate
2121
verify-generate: generate
2222
./scripts/git-diff.sh
2323

2424
_output/bin/protoc-gen-gofast:
25-
./scripts/go-install.sh \
25+
GO111MODULE=off ./scripts/go-install.sh \
2626
https://github.com/gogo/protobuf \
2727
github.com/gogo/protobuf \
2828
github.com/gogo/protobuf/protoc-gen-gofast \
2929
tags/v0.5
3030

3131
_output/bin/gomvpkg:
32-
./scripts/go-install.sh \
32+
GO111MODULE=off ./scripts/go-install.sh \
3333
https://github.com/golang/tools \
3434
golang.org/x/tools \
3535
golang.org/x/tools/cmd/gomvpkg \
@@ -44,7 +44,7 @@ _output/bin/protoc:
4444
_output/kubernetes:
4545
mkdir -p _output
4646
curl -o _output/kubernetes.zip -L https://github.com/kubernetes/kubernetes/archive/v$(KUBE_VERSION).zip
47-
unzip _output/kubernetes.zip -d _output > /dev/null
47+
bsdtar -x -f _output/kubernetes.zip -C _output > /dev/null
4848
mv _output/kubernetes-$(KUBE_VERSION) _output/kubernetes
4949

5050
.PHONY: clean

0 commit comments

Comments
 (0)