package <package> exports zero constants, functions, types, and variables
larsks opened this issue · comments
When importing modules, I often hit an error like this:
gomacro> import "github.com/docker/docker/client"
.
.
.
// warning: package "github.com/docker/docker/client" exports zero constants, functions, types and variables
The same import
statement in a compiled Go program works without a problem. What is this error trying to tell us? In all cases, the referenced module does export types, functions, etc.
(There is no "show me the version" option in gomacro
, but I just installed a fresh copy yesterday via go install ...
)
This is very probably due to issue #146 - if you are using Go toolchain >= 1.20, the only known solution at the moment is to downgrade to Go toolchain <= 1.19
That looks like the issue. Sorry for the duplicate!