diff --git a/correctness_test.go b/correctness_test.go index e659d57..52de8ef 100644 --- a/correctness_test.go +++ b/correctness_test.go @@ -212,7 +212,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()