Hi,

My use case is the following: I have a Go repository that has to be build 
and deployed on a target server.
I've had 0 issue with a yarn and npm projects (both installed on the target 
server).
Although I have installed Go (I mean Golang 1.17.3) on the target server, 
GoCD persist on returning:

go build took: 0.2s
Error happened while attempting to execute 'go build'. 
Please make sure [go] can be executed on this agent.
[Debug Information] Environment variable PATH: 
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

I've tried to add the path on the environment variables or even add steps 
to install Go(lang) during the GoCD steps but it seems overly complicated.

Has anyone successfully run a GoCD pipeline with Golang? 

Many thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/fa855d7f-3526-434e-a1f0-dc847bffedebn%40googlegroups.com.

Reply via email to