On a whim I thought I'd see how the linters felt about the go src code, the current results for go 1.12.10 are below.
In the result you will note that I am unable to compile go because a file is missing (libtestgo2c2go.h). I cannot find it on my system, nor can I find it on the internet. The issue does not exist in go1.13.1, however I am not able to run the linters there either, because I get "ERRO Running error: context loading failed: failed to load program with go/packages: go [list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./src/...]: exit status 1: go build go/src/runtime/cgo: package using cgo has Go assembly file asm_amd64.s" Any help on either or both issues appreciated (even if it's just a link to "This is how you do what you're trying to do") $ golangci-lint run -v ./... INFO [config_reader] Config search paths: [./ /home/shane/GoLang/src/go /home/shane/GoLang/src /home/shane/GoLang /home/shane /home /] INFO [config_reader] Used config file ../../../.golangci.yml INFO [lintersdb] Active 11 linters: [deadcode errcheck golint 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 load types and syntax took 1.131863478s ERRO Running error: context loading failed: failed to load program with go/packages: go [list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./...]: exit status 2: # go/misc/cgo/errors/src misc/cgo/errors/src/issue28721.go:17:8: identifier "_Ctype_struct_a" may conflict with identifiers generated by cgo misc/cgo/errors/src/issue28721.go:19:7: identifier "_Ctype_struct_a" may conflict with identifiers generated by cgo misc/cgo/errors/src/issue28721.go:22:5: identifier "_Ctype_struct_a" may conflict with identifiers generated by cgo misc/cgo/errors/src/issue28721.go:25:14: identifier "_Ctype_NotExist" may conflict with identifiers generated by cgo misc/cgo/errors/src/issue28721.go:28:2: identifier "_Cfunc_fn" may conflict with identifiers generated by cgo cgo: gcc errors for preamble: misc/cgo/errors/src/err1.go: In function 'test': misc/cgo/errors/src/err1.go:11:2: error: 'xxx' undeclared (first use in this function) xxx; // ERROR HERE ^~~ misc/cgo/errors/src/err1.go:11:2: note: each undeclared identifier is reported only once for each function it appears in # go/misc/cgo/testcshared/src/go2c2go/m2 misc/cgo/testcshared/src/go2c2go/m2/main.go:7:11: fatal error: libtestgo2c2go.h: No such file or directory // #include "libtestgo2c2go.h" ^~~~~~~~~~~~~~~~~~ compilation terminated. # go/misc/cgo/testsanitizers/src gcc: error: unrecognized argument to -fsanitize= option: 'memory' gcc: error: unrecognized argument to -fsanitize= option: 'memory' # go/doc/progs cgo: inconsistent package names: rand, rand2 # go/misc/cgo/testcshared/src/go2c2go/m1 c.c:5:10: fatal error: libtestgo2c2go.h: No such file or directory #include "libtestgo2c2go.h" ^~~~~~~~~~~~~~~~~~ compilation terminated. # go/misc/cgo/testsovar /usr/bin/ld: cannot find -lcgosotest collect2: error: ld returned 1 exit status # go/misc/cgo/testso /usr/bin/ld: cannot find -lcgosotest collect2: error: ld returned 1 exit status go build go/src/runtime/cgo: package using cgo has Go assembly file asm_amd64.s INFO Memory: 13 samples, avg is 68.9MB, max is 68.9MB INFO Execution took 1.168364346s -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5d8341ca-1f24-409c-89cc-ab2c4dcbc8a6%40googlegroups.com.