travis-ci / worker

Worker runs your Travis CI jobs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error: xargs: shfmt: No such file or directory && Makefile:59: recipe for target 'test-no-cover' failed

zhangysh1995 opened this issue · comments

commented

Anything else is fine except:

~/go/src/github.com/travis-ci/worker ~/go/src/github.com/travis-ci/worker
+ gometalinter --disable-all -E goimports -E gofmt -E goconst -E deadcode -E golint -E vet --deadline=1m --vendor --tests --errors ./...
[proxychains] DLL init: proxychains-ng 4.12-git-14-g06c20ed
+ git grep -l '^#!/usr/bin/env bash'
+ xargs shfmt -i 2 -w
[proxychains] DLL init: proxychains-ng 4.12-git-14-g06c20ed
[proxychains] DLL init: proxychains-ng 4.12-git-14-g06c20ed
xargs: shfmt: No such file or directory
Makefile:49: recipe for target 'lintall' failed
make: *** [lintall] Error 127

proxychains is what I'm using for network proxy.

commented

go get -u mvdan.cc/sh/cmd/shfmt solves this. Could you please add this to the README? And another error:

In packaging/config.bash line 6:
# shellcheck source=/dev/null
^-- SC1073: Couldn't parse this shellcheck annotation.
             ^-- SC1072: Expected "disable". Fix any mentioned problems and try again.


In script/package line 4:
main() {
       ^-- SC1009: The mentioned parser error was in this brace group.


In script/package line 6:
  # shellcheck source=/dev/null
  ^-- SC1073: Couldn't parse this shellcheck annotation.
               ^-- SC1072: Expected "disable". Fix any mentioned problems and try again.


In script/package-build line 4:
main() {
       ^-- SC1009: The mentioned parser error was in this brace group.


In script/package-build line 6:
  # shellcheck source=/dev/null
  ^-- SC1073: Couldn't parse this shellcheck annotation.
               ^-- SC1072: Expected "disable". Fix any mentioned problems and try again.

In script/package-test line 4:                                                                 [447/1816]
main() {
       ^-- SC1009: The mentioned parser error was in this brace group.


In script/package-test line 6:
  # shellcheck source=/dev/null
  ^-- SC1073: Couldn't parse this shellcheck annotation.
               ^-- SC1072: Expected "disable". Fix any mentioned problems and try again.


In script/smoke line 5:
  if [[ -f "${DOCKER_ENV_FILE}" ]]; then
                                    ^-- SC1009: The mentioned parser error was in this then clause.


In script/smoke line 6:
    # shellcheck source=/dev/null
    ^-- SC1073: Couldn't parse this shellcheck annotation.
                 ^-- SC1072: Expected "disable". Fix any mentioned problems and try again.


In script/smoke-docker line 5:
  if [[ -f "${DOCKER_ENV_FILE}" ]]; then
                                    ^-- SC1009: The mentioned parser error was in this then clause.

In script/smoke-docker line 6:
    # shellcheck source=/dev/null
    ^-- SC1073: Couldn't parse this shellcheck annotation.
                 ^-- SC1072: Expected "disable". Fix any mentioned problems and try again.

...........

ok      github.com/travis-ci/worker/ratelimit   1.020s
?       github.com/travis-ci/worker/ssh [no test files]
[proxychains] DLL init: proxychains-ng 4.12-git-14-g06c20ed
=== RUN   TestNothing
--- PASS: TestNothing (0.00s)
PASS
ok      github.com/travis-ci/worker/cmd/travis-worker   1.124s
Makefile:59: recipe for target 'test-no-cover' failed
make: *** [test-no-cover] Error 1