Skip to content

1.19.0: no go files to analyze  #761

Closed
@andig

Description

@andig

This seems a breaking, undocumented change coming from 1.18.0. Running with 1.18 does find files for linting.

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 run --version
golangci-lint has version 1.19.0 built from 27ac4c7 on 2019-09-23T20:40:07Z
  1. Config file: cat .golangci.yml
❯ cat .golangci.yml
issues:
  exclude:
  - "`sunspecModelID` is unused"
  - "`printModel` is unused"
  - "U1000: func `..sunSpec..sanitizeModels` is unused"
  - "U1000: func `..SunSpecCore..snip16int` is unused"
  - "U1000: func `..SunSpecCore..snip32` is unused"
  1. Go environment: go version && go env
❯ go version && go env
go version go1.13 darwin/amd64
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/andig/Library/Caches/go-build"
GOENV="/Users/andig/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/andig/htdocs/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org"
GOROOT="/usr/local/opt/go/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/andig/htdocs/mbmd/go.mod"
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/w5/_c0nb6n90fn96tzw04dtc6240000gn/T/go-build702025501=/tmp/go-build -gno-record-gcc-switches -fno-common"
  1. Verbose output of running: golangci-lint run -v
❯ golangci-lint run -v
INFO [config_reader] Config search paths: [./ /Users/andig/htdocs/mbmd /Users/andig/htdocs /Users/andig /Users /] 
INFO [config_reader] Used config file .golangci.yml 
INFO [lintersdb] Active 10 linters: [deadcode errcheck gosimple govet ineffassign staticcheck structcheck typecheck unused varcheck] 
INFO [lintersdb] Optimized sublinters [staticcheck gosimple unused] into metalinter megacheck 
INFO [loader] Go packages loading at mode 1023 (syntax|types|types_info|compiled_files|deps|name|types_sizes|exports_file|files|imports) took 1.515926345s 
ERRO Running error: context loading failed: no go files to analyze 
INFO Memory: 21 samples, avg is 68.9MB, max is 68.9MB 
INFO Execution took 1.918671903s               
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesRelates to an upstream dependencyfeedback requiredRequires additional feedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions