Skip to content

Commit

Permalink
tests/conversion: only install go if not already available
Browse files Browse the repository at this point in the history
GHA runners come with many Go versions bundled.

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel authored and hamistao committed Nov 25, 2024
1 parent 2236bab commit 97e8ca4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/conversion
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ install_lxd

set -x

# Install go from Snap.
snap install go --classic
if ! command -v go; then
# Install go from Snap.
snap install go --classic
fi

export PATH="${HOME}/go/bin:${PATH}"

Expand Down

0 comments on commit 97e8ca4

Please sign in to comment.