Skip to content

golangci-lint run fails in firewalled environment #494

Closed
@iavael

Description

@iavael
  1. golangci-lint has version 1.16.0 built from 97ea1cb on 2019-03-31T19:48:46Z
  2. no .golangci.yml
  3. go version go1.12.2 linux/amd64
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build259901938=/tmp/go-build -gno-record-gcc-switches"
$ golangci-lint run -v
INFO [config_reader] Config search paths: [./ /tmp/project /tmp /] 
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 Memory: 601 samples, avg is 68.9MB, max is 68.9MB 
INFO Execution took 1m0.000512063s                
INFO [loader] Go packages loading at mode load deps types and syntax took 59.951397497s 
ERRO Running error: context loading failed: failed to load program with go/packages: go [list -e -json -compiled -test=true -export=false -deps=true -find=false -- ./...]: signal: killed: go: finding github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261
go: finding github.com/kr/pretty v0.1.0
go: finding github.com/hashicorp/go-version v1.1.0
go: finding github.com/satori/go.uuid v1.2.0
go: finding github.com/jackc/pgx v3.1.0+incompatible
go: finding github.com/pkg/errors v0.8.0
go: finding github.com/lib/pq v1.0.0
go: finding github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24
go: finding <redacted> v0.0.0-20170905141155-2f5c109dcc9b
go: finding github.com/getsentry/raven-go v0.0.0-20180121060056-563b81fc02b7
go: gopkg.in/[email protected]: unrecognized import path "gopkg.in/check.v1" (https fetch: Get https://gopkg.in/check.v1?go-get=1: dial tcp 35.196.143.184:443: i/o timeout)
go: finding github.com/stretchr/testify v1.3.0
 
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