Remove old go version first

This commit is contained in:
Ian Davis 2022-10-14 14:23:48 +01:00
parent 4d28bdeab7
commit a294a9592e
2 changed files with 2 additions and 0 deletions

View File

@ -427,6 +427,7 @@ jobs:
- run: - run:
name: Update Go name: Update Go
command: | command: |
sudo rm -rf /usr/local/go && \
curl -L https://golang.org/dl/go1.18.1.linux-amd64.tar.gz -o /tmp/go.tar.gz && \ curl -L https://golang.org/dl/go1.18.1.linux-amd64.tar.gz -o /tmp/go.tar.gz && \
sudo tar -C /usr/local -xvf /tmp/go.tar.gz sudo tar -C /usr/local -xvf /tmp/go.tar.gz
- run: go version - run: go version

View File

@ -427,6 +427,7 @@ jobs:
- run: - run:
name: Update Go name: Update Go
command: | command: |
sudo rm -rf /usr/local/go && \
curl -L https://golang.org/dl/go1.18.1.linux-amd64.tar.gz -o /tmp/go.tar.gz && \ curl -L https://golang.org/dl/go1.18.1.linux-amd64.tar.gz -o /tmp/go.tar.gz && \
sudo tar -C /usr/local -xvf /tmp/go.tar.gz sudo tar -C /usr/local -xvf /tmp/go.tar.gz
- run: go version - run: go version