Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Image build not working #10

@danitrod

Description

@danitrod

Running step 6 of OpenShift Pipelines tutorial on https://learn.openshift.com/middleware/pipelines/, which clones this repo and builds the image, the build fails. The error is the following:

[build-image : build] STEP 4: RUN export GARCH="$(uname -m)" && if [[ ${GARCH} == "x86_64" ]]; then export GARCH="amd64"; fi && GOOS=linux GOARCH=${GARCH} CGO_ENABLED=0 go build -mod=vendor -o api-server .
[build-image : build] /bin/sh: go: command not found
[build-image : build] subprocess exited with status 127
[build-image : build] subprocess exited with status 127
[build-image : build] error building at STEP "RUN export GARCH="$(uname -m)" && if [[ ${GARCH} == "x86_64" ]]; then export GARCH="amd64"; fi && GOOS=linux GOARCH=${GARCH} CGO_ENABLED=0 go build -mod=vendor -o api-server .": exit status 127

Looks like go isn't installed properly. Maybe I am missing something? I runned every step of the tutorial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions