From 2f61ff7576f7be47600a61de8049fb68119f6928 Mon Sep 17 00:00:00 2001 From: Alex Couture-Beil Date: Fri, 24 May 2024 11:13:33 -0700 Subject: [PATCH] fix: don't warn when -ticktock image is used (#4154) Silence invalid warnings related to the -ticktock image being used. e.g. Warning: Buildkit version (v0.8.12-ticktock) is different from Earthly version (v0.8.12) will no longer appear. Signed-off-by: Alex Couture-Beil --- buildkitd/buildkitd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildkitd/buildkitd.go b/buildkitd/buildkitd.go index 6e91d947..27216a79 100644 --- a/buildkitd/buildkitd.go +++ b/buildkitd/buildkitd.go @@ -918,7 +918,7 @@ func printBuildkitInfo(bkCons conslogging.ConsoleLogger, info *client.Info, work if info.BuildkitVersion.Package != "github.com/earthly/buildkit" { bkCons.Warnf("Using a non-Earthly version of Buildkit. This is not supported.") } else { - if info.BuildkitVersion.Version != earthlyVersion { + if strings.TrimSuffix(info.BuildkitVersion.Version, "-ticktock") != earthlyVersion { if isLocal { // For local buildkits we expect perfect version match. bkCons.Warnf(