Skip to content

Deadline exceeded on MacOS #293

@gdankov

Description

@gdankov

Greetings,

After upgrading to version 1.12.2 (from 1.10.2) using brew, golangci-lint hangs for a long time until the deadline eventually exceeds.

I am using MacOS Mojave; Version 10.14.1 (18B75)

Please include the following information:

  1. Version of golangci-lint: golangci-lint --version (or git commit if you don't use binary distribution)

golangci-lint has version 1.12.2 built from 898ae4d on 2018-11-11T06:43:11Z

  1. Config file: cat .golangci.yml
run:
  # which dirs to skip: they won't be analyzed;
  skip-dirs:
    - vendor

linters-settings:
  govet:
    # report about shadowed variables
    check-shadowing: true
  gocyclo:
    # minimal code complexity to report
    min-complexity: 10
  maligned:
    # print struct with more effective memory layout
    suggest-new: true
  lll:
    line-length: 512

linters:
  enable-all: true
  disable:
    - gocritic
    - gochecknoglobals
    - scopelint
    - gochecknoinits
    - typecheck
    - goconst

issues:
  exclude-use-default: true
  exclude:
      - G402  # Temporarily do not look for bad TLS connection settings.

  # Maximum issues count per one linter. Set to 0 to disable.
  max-per-linter: 0

  # Maximum count of issues with the same text. Set to 0 to disable
  max-same: 0

  # Show only new issues
  new: false
  1. Go environment: go version && go env
go version go1.10.3 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/.../Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/.../go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/4k/14xvlv8s47j2s0tskc0ht4240000gn/T/go-build379266119=/tmp/go-build -gno-record-gcc-switches -fno-common"
  1. Verbose output of running: golangci-lint run -v
INFO [config_reader] Config search paths: [./ /Users/.../go/src/code.cloudfoundry.org/eirini /Users/.../go/src/code.cloudfoundry.org /Users/.../go/src /Users/.../go /Users/... /Users /]
INFO [config_reader] Used config file .golangci.yml
INFO Gocritic enabled checks: [appendAssign assignOp caseOrder dupArg dupBranchBody dupCase flagDeref ifElseChain regexpMust singleCaseSwitch sloppyLen switchTrue typeSwitchVar underef unlambda unslice defaultCaseOrder]
INFO [lintersdb] Active 22 linters: [deadcode depguard dupl errcheck gocyclo gofmt goimports golint gosec govet ineffassign interfacer lll maligned megacheck misspell nakedret prealloc structcheck unconvert unparam varcheck]
INFO Memory: 601 samples, avg is 69.7MB, max is 69.7MB
INFO Execution took 1m0.005106025s
INFO [loader] Go packages loading at mode load deps types and syntax took 12m44.411750704s
INFO [loader] SSA repr building timing: packages building 46.431281ms, total 2.027687669s
INFO [loader] SSA for megacheck repr building timing: packages building 57.741071ms, total 2.085012097s
INFO [loader/astcache] Parsed AST of all pkg.GoFiles: [] for 565ns
INFO [loader/astcache] Parsed AST of all pkg.GoFiles: [] for 275ns
INFO [loader/astcache] Parsed AST of all pkg.GoFiles: [] for 259ns
INFO [loader/astcache] Parsed AST of all pkg.GoFiles: [] for 239ns
INFO [loader/astcache] Parsed AST of all pkg.GoFiles: [] for 392ns
INFO [loader] Packages that do not compile: [code.cloudfoundry.org/eirini/recipe/packs/cf/fixtures/go-app code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/launcher [code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/launcher.test] code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/launcher/fixtures/hello code.cloudfoundry.org/eirini/recipe/packs/cf/cmd/exporter code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/buildpackrunner [code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/buildpackrunner.test] code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/buildpackrunner_test [code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/buildpackrunner.test] code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/protocol code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/builder [code.cloudfoundry.org/eirini/launcher/buildpackapplifecycle/builder.test]]
INFO [runner] worker.2 took 9.709µs
INFO [runner] worker.1 took 8.055µs
INFO [runner] worker.3 took 8.937µs
INFO [runner] worker.7 took 4.844µs
INFO [runner] worker.8 took 3.712µs
INFO [runner] worker.6 took 4.49µs
INFO [runner] worker.4 took 15.735µs
INFO [runner] worker.5 took 7.698µs
INFO [runner] Workers idle times: #1: 73.105µs, #2: 83.24µs, #3: 60.622µs, #4: 15.325µs, #6: 33.897µs, #7: 54.757µs, #8: 44.14µs
INFO [runner] processing took 4.302µs with stages: max_same_issues: 907ns, skip_dirs: 409ns, path_prettifier: 378ns, nolint: 342ns, autogenerated_exclude: 335ns, cgo: 294ns, skip_files: 270ns, max_from_linter: 245ns, exclude: 238ns, path_shortener: 237ns, diff: 215ns, max_per_file_from_linter: 154ns, uniq_by_line: 147ns, source_code: 131ns
ERRO [runner] 0/22 linters finished: deadline exceeded
ERRO Deadline exceeded: try increase it by passing --deadline option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions