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

Golang not found in Bitbucket pipeline

sebastien_amet 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 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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events