mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
bump easyssh package.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
88b5394dac
commit
ceec42efdd
12
vendor/github.com/appleboy/easyssh-proxy/Makefile
generated
vendored
12
vendor/github.com/appleboy/easyssh-proxy/Makefile
generated
vendored
@ -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)
|
||||
|
3
vendor/github.com/appleboy/easyssh-proxy/easyssh.go
generated
vendored
3
vendor/github.com/appleboy/easyssh-proxy/easyssh.go
generated
vendored
@ -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
8
vendor/vendor.json
vendored
@ -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=",
|
||||
|
Loading…
Reference in New Issue
Block a user