Ok so I had to use `/usr/bin/go/bin/go build` weirdly.

 This way worked in the end so all good - thank you for the precisions!

Le mardi 23 novembre 2021 à 00:03:14 UTC, [email protected] a écrit :

> From a GoCD point of view there is no difference between yarn build and go 
> build. After adding *go* binary to PATH have you tried restarting the 
> agents? If not please restart them and try running the pipeline. We do 
> build go projects in GoCD without issues.
>
>
>
> On Mon, Nov 22, 2021, 21:02 Jean-Charles Passepont <[email protected]> 
> wrote:
>
>> 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
>>  
>> <https://groups.google.com/d/msgid/go-cd/fa855d7f-3526-434e-a1f0-dc847bffedebn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/fcf730b2-54c7-4475-8700-4743dae48530n%40googlegroups.com.

Reply via email to