Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: perform go mod download in shared build-workflow #374

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading