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

Backport of ci: clean GOCACHE before build into release/1.5.x #17822

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #17808 to be assessed for backporting due to the inclusion of the label backport/1.5.x.

The below text is copied from the body of the original PR.


This is basically to avoid Fear/Uncertainty/Doubt.

The github action actions/setup-go (and, with a different chache key, hashicorp/setup-golang) caches both GOMODCACHE (go source files), which is good, and GOCACHE (build outputs), which might be bad, if the cache was built on an OS with an older glibc than we want to support. from go help cache:

[...] the build cache does not detect changes to C libraries imported with cgo.

I think we've been okay so far, because the cache has always(~?) been built on 20.04 machines, but to be safe, this wipes the build cache (leaving the mod cache alone) before building.

related PR that checks the build after the fact: #17706

@hc-github-team-nomad-core hc-github-team-nomad-core requested review from a team as code owners July 6, 2023 17:48
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/ci-build-go-clean-cache/basically-nearby-prawn branch from 218a4fd to c5c8a3e Compare July 6, 2023 17:48
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit 357048c into release/1.5.x Jul 6, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/ci-build-go-clean-cache/basically-nearby-prawn branch from 4e171c5 to f16d88e Compare July 6, 2023 17:48
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/ci-build-go-clean-cache/basically-nearby-prawn branch July 6, 2023 17:48
@vercel vercel bot temporarily deployed to Preview – nomad July 6, 2023 17:54 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui July 6, 2023 17:54 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants