Skip to content

Scope Go cache per build flavor and resolve cache paths#9

Merged
roidelapluie merged 2 commits into
prometheus:mainfrom
roidelapluie:roidelapluie/go-cache-key-suffix
Jun 23, 2026
Merged

Scope Go cache per build flavor and resolve cache paths#9
roidelapluie merged 2 commits into
prometheus:mainfrom
roidelapluie:roidelapluie/go-cache-key-suffix

Conversation

@roidelapluie

Copy link
Copy Markdown
Member

Add a cache_key_suffix input so jobs compiling with different flags, architectures or build tags keep separate warm build caches. Resolve GOCACHE and GOMODCACHE from the toolchain instead of hardcoding paths, which were wrong in the golang-builder container (GOPATH=/go)

Add a cache_key_suffix input so jobs compiling with different flags,
architectures or build tags keep separate warm build caches. Resolve
GOCACHE and GOMODCACHE from the toolchain instead of hardcoding paths,
which were wrong in the golang-builder container (GOPATH=/go)

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie requested a review from SuperQ June 22, 2026 11:20
Comment thread action.yml Outdated
Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie merged commit b7975fe into prometheus:main Jun 23, 2026
2 checks passed
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