Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion correctness_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading