From 725223eeedc8e70aecf71ff30739c5fdcc31889c Mon Sep 17 00:00:00 2001 From: r1viollet Date: Thu, 23 Oct 2025 11:34:54 +0200 Subject: [PATCH] Force dockers to install newer versions of the profiler Adding a cache date forces some rebuilds to happen --- correctness_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/correctness_test.go b/correctness_test.go index f99990b..194344f 100644 --- a/correctness_test.go +++ b/correctness_test.go @@ -194,7 +194,9 @@ func buildBaseImage(rootDir string, baseImageName string, t *testing.T) { } tag := baseImageName - buildCmd := exec.Command("docker", "build", "-t", tag, "-f", dockerfilePath, rootDir) + // Cache date helps force re-fetching newer profiler versions (though this requires the dockerfile to handle it) + now_time := time.Now() + buildCmd := exec.Command("docker", "build", "-t", tag, "-f", dockerfilePath, "--build-arg", "CACHE_DATE="+now_time.Format("2006-01-02_15:04:05"), rootDir) buildCmd.Stdout = os.Stdout buildCmd.Stderr = os.Stderr err := buildCmd.Run()