Skip to content

Commit

Permalink
add dev dependencies to make setup (#12)
Browse files Browse the repository at this point in the history
* add dev dependencies to `make setup`
* golint fix
* update README
  • Loading branch information
mbyczkowski committed Jun 16, 2017
1 parent b976d83 commit f908ac4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ ci: check binaries checkprotos coverage coverage-integration ## to be used by th

setup: ## install dependencies
@echo "🎈 $@"
@go get -u github.com/golang/lint/golint
@go get -u github.com/gordonklaus/ineffassign
@go get -u github.com/client9/misspell/cmd/misspell
@go get -u github.com/Masterminds/glide
@glide install

Expand Down
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ Wormhole is a reverse proxy that creates a secure tunnel between two endpoints.
## Compiling
**Wormhole requires Go1.7+**

go get github.com/Masterminds/glide
mkdir -p $GOPATH/github.com/superfly
cd $GOPATH/src/github.com/superfly
git clone git@github.com:superfly/wormhole.git
cd wormhole
glide install
go build github.com/superfly/wormhole/cmd/wormhole

go get github.com/superfly/wormhole
cd $GOPATH/src/github.com/superfly/wormhole
make setup
make binaries

## Running locally

Expand Down
2 changes: 1 addition & 1 deletion local/ssh_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (s *SSHHandler) stayAlive() {

if needReply && replyLatency > maxKeepaliveLatency {
s.logger.Infof("Last Keepalive: %v, Last Keepalive reply: %v", lastKeepalive, lastKeepaliveReply)
err := fmt.Errorf("Connection stale, haven't gotten Keepalive reply in %d seconds. Closing connection.", int(replyLatency.Seconds()))
err := fmt.Errorf("ssh_handler: connection stale, haven't gotten keepalive reply in %d seconds", int(replyLatency.Seconds()))
s.shutdown.Begin(err)
return
}
Expand Down

0 comments on commit f908ac4

Please sign in to comment.