bump easyssh package.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-05-10 21:37:48 +08:00
parent 88b5394dac
commit ceec42efdd
No known key found for this signature in database
GPG Key ID: 0F84B2110C500B1F
3 changed files with 9 additions and 14 deletions

View File

@ -1,8 +1,7 @@
.PHONY: test drone-ssh fmt vet errcheck lint install update coverage embedmd
GOFMT ?= gofmt "-s"
GOFILES := find . -name "*.go" -type f -not -path "./vendor/*"
GOFILES := $(shell find . -name "*.go" -type f -not -path "./vendor/*")
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
all: install lint
@ -14,16 +13,17 @@ install:
govendor sync
fmt:
$(GOFILES) | xargs $(GOFMT) -w
$(GOFMT) -w $(GOFILES)
.PHONY: fmt-check
fmt-check:
# get all go files and run go fmt on them
@files=$$($(GOFILES) | xargs $(GOFMT) -l); if [ -n "$$files" ]; then \
@diff=$$($(GOFMT) -d $(GOFILES)); \
if [ -n "$$diff" ]; then \
echo "Please run 'make fmt' and commit the result:"; \
echo "$${files}"; \
echo "$${diff}"; \
exit 1; \
fi;
fi;
vet:
go vet $(PACKAGES)

View File

@ -210,12 +210,9 @@ func (ssh_conf *MakeConfig) Stream(command string, timeout int) (stdout chan str
select {
case <-res:
stdoutChan <- ""
stderrChan <- ""
errChan <- session.Wait()
done <- true
case <-timeoutChan:
stdoutChan <- ""
stderrChan <- "Run Command Timeout!"
errChan <- nil
done <- false

8
vendor/vendor.json vendored
View File

@ -3,12 +3,10 @@
"ignore": "test",
"package": [
{
"checksumSHA1": "/Sb+z/BicEjhh6Ib7Tawr64BNHA=",
"checksumSHA1": "fmzCBkzzkd3KK/yfeMR8IYApkIE=",
"path": "github.com/appleboy/easyssh-proxy",
"revision": "cf4f2bae639f692dbc7b3f852be35125a1a645e3",
"revisionTime": "2017-05-09T01:16:07Z",
"version": "1.1.3",
"versionExact": "1.1.3"
"revision": "aa0e30613aeb5cca179bd3982da8d2e06a1bb2a4",
"revisionTime": "2017-05-10T13:33:00Z"
},
{
"checksumSHA1": "dvabztWVQX8f6oMLRyv4dLH+TGY=",