Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

ci: always install/update golang #1464

@grahamwhaley

Description

@grahamwhaley

We have an install_go.sh script in the .ci subdir, but presently it is only ever called from the jenkins CI kickoff script.
Over on kata-containers/proxy#154, Zuul presently does not invoke the jenkins script, but installs golang on the node/distro and then invokes the .ci/setup.sh directly.
As some distros (e.g. Ubuntu et. al.), by default install old versions of go (v1.6 for instance iirc), the CI run then fails to build Kata, as the golang is too old.

Unpicking the CI scripts, we do have a sequence of items that must be installed for things to proceed, and they are likely something like:

  • must have git, to clone some initial repos to get the scripts
  • must have curl so we can install yq to then query the version.yaml
  • must have go so we can get and build the other repos

Let's try to always install/update golang at the start of the setup then. There may be an inter-dependence here between git/go/curl/yq - we'll find out when we PR the update.

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