Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Golang not found in Bitbucket pipeline

sebastien.amet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 24, 2022

Hello,

I am using a pipeline definition proposed here: 

https://bitbucket.org/atlassian/pipelines-examples-go/src/master/

But during the pipeline I have 

bash: go: command not found

I have debug it:

echo $GOPATH => empty
GOPATH=/c/Go/bin
echo $GOPATH => /c/Go/bin
go version =>bash: go: command not found

Is Golang deployed? Shall I deploy it?

 

Thanks

 

 

1 answer

1 accepted

0 votes
Answer accepted
sebastien.amet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 25, 2022

The base image was not correct.

Works much better with 

image: golang :) !!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events