Skip to content

Configure cache to be used for incremental go build#2060

Draft
gtardif wants to merge 1 commit intodocker:mainfrom
gtardif:cache_image_gobuild
Draft

Configure cache to be used for incremental go build#2060
gtardif wants to merge 1 commit intodocker:mainfrom
gtardif:cache_image_gobuild

Conversation

@gtardif
Copy link
Contributor

@gtardif gtardif commented Mar 11, 2026

Could not get cache mount to work for go build, cf moby/buildkit#1512
Also tried https://github.com/reproducible-containers/buildkit-cache-dance/tree/v3.3.2/ with action/cache with no results (+ exporting cache was adding 1 min to build)

Finally simply adds Docker layers for go mod download

@gtardif gtardif force-pushed the cache_image_gobuild branch 9 times, most recently from f0790e5 to 500b5a6 Compare March 12, 2026 13:27
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
@gtardif gtardif force-pushed the cache_image_gobuild branch from 500b5a6 to 5e30578 Compare March 12, 2026 14:01
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.

1 participant