Skip to content

Commit

Permalink
docs: Update README building-from-source part with the gomodule way (#…
Browse files Browse the repository at this point in the history
…152)

Closes #149 

Signed-off-by: pink-lucifer <lucifer.m.wu@gmail.com>
  • Loading branch information
pink-lucifer authored and aeneasr committed Jan 22, 2019
1 parent 2d9899a commit 9d653f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -86,8 +86,7 @@ ec91228cb105db315553499c81918258f52cee9636ea2a4821bdb8226872f54b

### Building from source

If you wish to compile ORY Oathkeeper yourself, you need to install and set up [Go 1.10+](https://golang.org/) and add `$GOPATH/bin`
to your `$PATH` as well as [golang/dep](http://github.com/golang/dep).
If you wish to compile ORY Oathkeeper yourself, you need to install and set up [Go 1.11+](https://golang.org/).

The following commands will check out the latest release tag of ORY Oathkeeper and compile it and set up flags so that `oathkeeper version`
works as expected. Please note that this will only work with a linux shell like bash or sh.
Expand All @@ -97,12 +96,11 @@ go get -d -u github.com/ory/oathkeeper
cd $(go env GOPATH)/src/github.com/ory/oathkeeper
OATHKEEPER_LATEST=$(git describe --abbrev=0 --tags)
git checkout $OATHKEEPER_LATEST
dep ensure -vendor-only
go install \
GO111MODULE=on go install \
-ldflags "-X github.com/ory/oathkeeper/cmd.Version=$OATHKEEPER_LATEST -X github.com/ory/oathkeeper/cmd.BuildTime=`TZ=UTC date -u '+%Y-%m-%dT%H:%M:%SZ'` -X github.com/ory/oathkeeper/cmd.GitHash=`git rev-parse HEAD`" \
github.com/ory/oathkeeper
git checkout master
oathkeeper help
$GOPATH/bin/oathkeeper help
```

## Ecosystem
Expand Down

0 comments on commit 9d653f5

Please sign in to comment.