From 169734d9fe736009d2d5fc29966938f298bf1531 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Tue, 1 Jul 2025 08:16:29 +0000 Subject: [PATCH] fix(dogfood/coder): run go clean cache at workspace shutdown --- dogfood/coder/main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index dfc1127ba387b..a9cb72b9c7984 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -496,6 +496,10 @@ resource "coder_agent" "dev" { #!/usr/bin/env bash set -eux -o pipefail + # Clean up the Go build cache to prevent the home volume from + # accumulating waste and growing too large. + go clean -cache + # Clean up the unused resources to keep storage usage low. # # WARNING! This will remove: