Skip to content

Commit

Permalink
clarify building confd from source
Browse files Browse the repository at this point in the history
Some users that are new to Go have been confused with the instructions on how to get started.
Hopefully this clears up the confusion.
  • Loading branch information
Matthew Fisher committed Apr 12, 2016
1 parent 6e198db commit 6386163
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,40 +20,19 @@
Go 1.6 is required to build confd, which uses the new vendor directory.

```
git clone https://github.com/kelseyhightower/confd.git
cd confd
go build
$ mkdir -p $GOPATH/src/github.com/kelseyhightower
$ git clone https://github.com/kelseyhightower/confd.git $GOPATH/src/github.com/kelseyhightower/confd
$ cd $GOPATH/src/github.com/kelseyhightower/confd
$ ./build
```

You should now have confd binary in the bin directory:
You should now have confd in your `bin/` directory:

```
$ ls bin/
confd
```

### Building with the go tool

```
$ git clone https://github.com/kelseyhightower/confd.git
$ cd confd
```

```
$ pwd
/Users/kelseyhightower/confd
```

```
$ go build .
```

You can also produce a static binary too:

```
$ go build -a -installsuffix cgo -ldflags '-extld ld -extldflags -static' -a -x .
```

## Getting Started

Before we begin be sure to [download and install confd](docs/installation.md).
Expand Down

0 comments on commit 6386163

Please sign in to comment.