Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
README: modify the build step for binaries
Browse files Browse the repository at this point in the history
'-o' for directories is still bleeding edge and has some bugs in 1.12.
See issue 14295 in https://github.com/golang/go.

- Inline separate build commands for the binaries.
- Include GO111MODULE=on as it's required if the repo was cloned in GOPATH
- Include the binaries in .gitignore
  • Loading branch information
neolit123 committed Jun 24, 2019
1 parent 25dac24 commit a57ad94
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
capdctl
capd-manager
kind-test
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ A sample is built and hosted at `gcr.io/kubernetes1-226021/capd-manager:latest`

### Building the binaries

Requires go with go modules.
Requires go 1.12+ with go modules.

* `go build ./cmd/...`
* `go build ./cmd/`
```
# required if `cluster-api-provider-docker` was cloned into $GOPATH
export GO111MODULE=on
# build the binaries
go build ./cmd/capdctl
go build ./cmd/capd-manager
go build ./cmd/kind-test
```

### Building the image

Expand Down

0 comments on commit a57ad94

Please sign in to comment.