Skip to content

makefile: don't do a go clean -cache when building the starter (release-4.4)#4065

Merged
dtrudg merged 2 commits intosylabs:release-4.4from
dtrudg:no-go-clean-4.4
Apr 1, 2026
Merged

makefile: don't do a go clean -cache when building the starter (release-4.4)#4065
dtrudg merged 2 commits intosylabs:release-4.4from
dtrudg:no-go-clean-4.4

Conversation

@dtrudg
Copy link
Copy Markdown
Member

@dtrudg dtrudg commented Mar 26, 2026

Pick #4060 onto the release-4.4 branch

dtrudg added 2 commits March 26, 2026 17:22
Clobbering the Go cache is quite nasty in local builds, and painful in
CI.

The starter C code is changed little enough that requiring a manual
`go clean -cache` to pick up changes is reasonable.

This PR undoes the changes from:

apptainer/singularity#2288

It adds a note to CONTRIBUTING.md and the C source/header files
r.e. cleaning the cache to pick up modifications to the C code.

See also https://pkg.go.dev/cmd/go#hdr-Build_and_test_caching

See also apptainer/apptainer#3388
Cache checksum now covers starter C code modification times, as well
as go.sum, so the build cache is not used if the starter C code has
changed.

Avoids the issue documented in:

https://pkg.go.dev/cmd/go#hdr-Build_and_test_caching
@dtrudg dtrudg self-assigned this Mar 26, 2026
@dtrudg dtrudg requested a review from Copilot March 31, 2026 14:26

This comment was marked as outdated.

@dtrudg dtrudg merged commit 2852805 into sylabs:release-4.4 Apr 1, 2026
5 checks passed
@dtrudg dtrudg deleted the no-go-clean-4.4 branch April 1, 2026 13:42
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.

3 participants