такая апшипка:
WARN [runner] Can't run linter unused: buildir: failed to load package net: could not load export data: no export data for "net"
Ишья с гитхаба подсказывает делать так.
I was seeing the same problem with Go installed from official binaries (i.e. https://golang.org/doc/install). It turned out that net imports cgo_linux, which in turn is including netdb.h.
Bottom line: needed to install gcc and libc-dev packages.
Guess that (some) linters are not differentiating between pure-Go/CGo based implementations, like the compiler itself does?
EDIT: Actually, explicitly setting CGO_ENABLED=0 seems to work, too.
Не могу понять где на арс/манджаро линуксе пакет libc-dev?
Может как то иначе решали такую проблему?
вы пробовали cgo enabled ?
Обсуждают сегодня