Skip to content

Commit

Permalink
CIRRUS_TUIST_CACHE_ENABLED can be now enabled via script environment (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Oct 28, 2024
1 parent 8006bef commit 2a5991b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/agent/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a5991b

Please sign in to comment.