From e85e5225a278819f5f9b73c5191ba58fd7559226 Mon Sep 17 00:00:00 2001 From: Mayank Thakur Date: Mon, 6 Nov 2023 19:56:32 +0530 Subject: [PATCH] fix: failing CI, because go binary was not deleted --- .github/workflows/enforce-go-mod-tidy.yml | 4 +--- .github/workflows/pre-commit-hook-run.yml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/enforce-go-mod-tidy.yml b/.github/workflows/enforce-go-mod-tidy.yml index 82b7e38e..fab2ff1a 100644 --- a/.github/workflows/enforce-go-mod-tidy.yml +++ b/.github/workflows/enforce-go-mod-tidy.yml @@ -10,9 +10,7 @@ jobs: - name: Create a new git repository run: git init && git add --all && git -c user.name='test' -c user.email='test@example.com' commit -m 'init for pr action' - name: Install latest go - run: wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin - - name: Debug - run: go version && go mod tidy && go mod why -m && git status && git diff + run: wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin && rm go1.21.3.linux-amd64.tar.gz - name: Go mod tidy for root project run: go mod tidy - name: Go mod tidy for example apps diff --git a/.github/workflows/pre-commit-hook-run.yml b/.github/workflows/pre-commit-hook-run.yml index fbc3a097..a653f11f 100644 --- a/.github/workflows/pre-commit-hook-run.yml +++ b/.github/workflows/pre-commit-hook-run.yml @@ -21,5 +21,5 @@ jobs: node-version: '12' - run: git init && git add --all && git -c user.name='test' -c user.email='test@example.com' commit -m 'init for pr action' - name: Install latest go - run: wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin + run: wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin && rm go1.21.3.linux-amd64.tar.gz - run: ./hooks/pre-commit.sh