Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
More information about building from source
Browse files Browse the repository at this point in the history
Added sections about building specific tag from source and using release tarball.
  • Loading branch information
tzdybal committed Nov 23, 2017
1 parent 8dc81ea commit 0a3f1fd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@ To install...

Executables built from source will, by default, be installed in `$GOPATH/bin/`.

#### Building specific release
All the above commands results with building binaries from `HEAD`. To use a specific release/tag, use the following:
```
$ go get -d github.com/ethereumproject/go-ethereum/...
$ cd $GOPATH/src/github.com/ethereumproject/go-ethereum
$ git checkout <TAG OR REVISION>
$ go install -ldflags "-X main.Version="`git describe --tags` ./cmd/...
```

#### Using release source code tarball
Because of strict Go directory structure, tarball needs to be extracted into proper subdirectory under `$GOPATH`.
Following commands are example of building the v4.1.1 release:
```
$ mkdir -p $GOPATH/src/github.com/ethereumproject
$ cd $GOPATH/src/github.com/ethereumproject
$ tar xzf /path/to/go-ethereum-4.1.1.tar.gz
$ mv go-ethereum-4.1.1 go-ethereum
$ cd go-ethereum
$ go install -ldflags "-X main.Version=v4.1.1" ./cmd/...
```

## Executables

This repository includes several wrappers/executables found in the `cmd` directory.
Expand Down

0 comments on commit 0a3f1fd

Please sign in to comment.