This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 3
3
## Requirements
4
4
5
5
* Go 1.8+
6
- * Configured [ GOPATH] ( http://golang.org/doc/code.html#GOPATH )
7
6
8
7
## Building
9
8
10
- First, clone the repo into the proper location in your $ GOPATH:
9
+ First, clone the repo into the proper location in your [ ` GOPATH ` ] [ GOPATH ] :
11
10
12
11
```
13
12
go get -u github.com/kubernetes-incubator/bootkube
14
- cd $GOPATH/src/github.com/kubernetes-incubator/bootkube
13
+ cd $(go env GOPATH | cut -d: -f1) /src/github.com/kubernetes-incubator/bootkube
15
14
```
16
15
17
16
Then, to build (only Go verson 1.8 is supported now):
@@ -71,3 +70,5 @@ Commenting on the PR:
71
70
* ` coreosbot run e2e checkpointer ` : can be used to specifically test new checkpointer code.
72
71
* This will build a new checkpointer image from the PR, and includes that image as part of the checkpointer daemonset.
73
72
* ` coreosbot run conformance ` : run upstream Kubernetes conformance tests
73
+
74
+ [ GOPATH ] : https://golang.org/cmd/go/#hdr-GOPATH_environment_variable
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ export PATH:=$(PATH):$(PWD)
6
6
SHELL: =$(shell which bash)
7
7
LOCAL_OS: =$(shell uname | tr A-Z a-z)
8
8
GOFILES: =$(shell find . -name '* .go' | grep -v -E '(./vendor) ')
9
- GOPATH_BIN: =$(shell echo ${GOPATH} | awk 'BEGIN { FS = ":" }; { print $1 }') /bin
9
+ GOPATH ?= $(shell go env GOPATH)
10
+ PRIMARY_GOPATH ?= $(shell echo ${GOPATH} | cut -d : -f 1)
11
+ GOBIN ?= $(PRIMARY_GOPATH ) /bin
10
12
LDFLAGS =-X github.com/kubernetes-incubator/bootkube/pkg/version.Version=$(shell $(CURDIR ) /build/git-version.sh)
11
13
TERRAFORM: =$(shell command -v terraform 2> /dev/null)
12
14
42
44
@go test -v $(shell go list ./... | grep -v '/vendor/\|/e2e')
43
45
44
46
install : _output/bin/$(LOCAL_OS ) /bootkube
45
- cp $< $(GOPATH_BIN )
47
+ cp $< $(GOBIN )
46
48
47
49
_output/bin/% : GOOS=$(word 1, $(subst /, ,$* ) )
48
50
_output/bin/% : GOARCH=$(word 2, $(subst /, ,$* ) )
You can’t perform that action at this time.
0 commit comments