#go list failed to return CompiledGoFiles. This may indicate failure to perform cgo processing

19 messages · Page 1 of 1 (latest)

languid sierra
#

I'm new to Go-lang and I've never dealt with the errors of it before so i don't understand the message I'm getting at all. i did look up the error but nothing really helped and it was all just confusing. i assume that i missed a step when installing but i can still go run (filename) and It'd work . If anybody ever dealt with this before your help is very appreciated !

#

ALSO: i couldn't find many resources on this issue either which is why i came here it was either nothing related to it or just off the rails another issue

honest veldt
#

what are you trying to build?

languid sierra
#

Nothing big just a simple hello world but i'm just getting that error under package main for some reason it's annoying

honest veldt
#

How did you install Go? what platform are you on?

languid sierra
#

Okay so, i am on Linux mint and i installed go the way it says to in the docs and then in vscode i installed the extensions for it - nothing else really happened until i wrote my simple hello world. i ran the commands listed in the docs too and they both work fine.

#

i can show you the output of the export path command if you'd like

languid sierra
#

@honest veldt hello ?

safe escarp
#

show the error message that you are getting and your codes too.
use playground or pastebin if its large.

#

also what's the exact command that you used to build it.

languid sierra
languid sierra
safe escarp
#

are you on windows?

safe escarp
#

oops srry.
try disable CGO
CGO_ENABLED=0 go run main.go

languid sierra
#

kk

safe escarp
languid sierra
safe escarp
#

yes, probably installed by default in mint.