Skip to content

Commit

Permalink
chore: perform go mod download in shared build-workflow (#374)
Browse files Browse the repository at this point in the history
Co-authored-by: Patryk Małek <[email protected]>
  • Loading branch information
programmer04 and pmalek authored Jun 24, 2024
1 parent 7d1112a commit a0378da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/__build-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod

# 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 != ''}}
run: go mod download

- run: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
- run: echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
Expand Down

0 comments on commit a0378da

Please sign in to comment.