From 2a5991bcf326f0649e9e5d7afa2e2a0c13eb989d Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Mon, 28 Oct 2024 20:19:31 +0100 Subject: [PATCH] CIRRUS_TUIST_CACHE_ENABLED can be now enabled via script environment (#807) --- internal/agent/executor/executor.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/agent/executor/executor.go b/internal/agent/executor/executor.go index 94419b0f..d460c200 100644 --- a/internal/agent/executor/executor.go +++ b/internal/agent/executor/executor.go @@ -220,10 +220,7 @@ func (executor *Executor) RunBuild(ctx context.Context) { var tuistCaching bool // Tuist caching API support - // - // Can be enabled through the OS environment variable and - // only works with our built-in cache server. - if _, ok := os.LookupEnv("CIRRUS_TUIST_CACHE_ENABLED"); ok { + if _, ok := executor.env.Lookup("CIRRUS_TUIST_CACHE_ENABLED"); ok { tuistCache, err := tuistcache.New() if err != nil { log.Printf("Failed to initialize Tuist cache: %v", err)