From 61aea982e0bf9a25beeff80a69fc155c2284f29a Mon Sep 17 00:00:00 2001 From: Jakub Warczarek Date: Mon, 24 Jun 2024 18:26:49 +0200 Subject: [PATCH 1/3] chore: perform go mod download in shared build-workflow --- .github/workflows/__build-workflow.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/__build-workflow.yaml b/.github/workflows/__build-workflow.yaml index 40ddea4e5..3f3df4102 100644 --- a/.github/workflows/__build-workflow.yaml +++ b/.github/workflows/__build-workflow.yaml @@ -195,6 +195,12 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: go.mod + + # Path for additional-build-contexts may ponits to dependences that are pulled by Go toolchain, + # so we need to download them before building the image. + - name: Set up Go dependencies for additional build contexts + if: ${{ inputs.additional-build-contexts != ''}} + run: go mod download - run: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - run: echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV From 6df512d6882762dd775605af49006f1cbe6e893a Mon Sep 17 00:00:00 2001 From: Jakub Warczarek Date: Mon, 24 Jun 2024 18:44:50 +0200 Subject: [PATCH 2/3] Update .github/workflows/__build-workflow.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Patryk Małek --- .github/workflows/__build-workflow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/__build-workflow.yaml b/.github/workflows/__build-workflow.yaml index 3f3df4102..96c59525f 100644 --- a/.github/workflows/__build-workflow.yaml +++ b/.github/workflows/__build-workflow.yaml @@ -196,7 +196,7 @@ jobs: with: go-version-file: go.mod - # Path for additional-build-contexts may ponits to dependences that are pulled by Go toolchain, + # Path for additional-build-contexts may point to dependences that are pulled by Go toolchain, # so we need to download them before building the image. - name: Set up Go dependencies for additional build contexts if: ${{ inputs.additional-build-contexts != ''}} From bfac7a89b644e2487e70827fb18b221cd5a7a163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ma=C5=82ek?= Date: Mon, 24 Jun 2024 18:45:29 +0200 Subject: [PATCH 3/3] Update .github/workflows/__build-workflow.yaml --- .github/workflows/__build-workflow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/__build-workflow.yaml b/.github/workflows/__build-workflow.yaml index 96c59525f..199013e6e 100644 --- a/.github/workflows/__build-workflow.yaml +++ b/.github/workflows/__build-workflow.yaml @@ -196,7 +196,7 @@ jobs: with: go-version-file: go.mod - # Path for additional-build-contexts may point to dependences that are pulled by Go toolchain, + # Path for additional-build-contexts may point to dependencies that are pulled by Go toolchain, # so we need to download them before building the image. - name: Set up Go dependencies for additional build contexts if: ${{ inputs.additional-build-contexts != ''}}