github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/controllers/core/tiltfile/buildsource.go (about)

     1  package tiltfile
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/tilt-dev/tilt/internal/store"
     7  	"github.com/tilt-dev/tilt/pkg/model"
     8  	"github.com/tilt-dev/tilt/pkg/model/logstore"
     9  )
    10  
    11  // BuildEntry is vestigial, but currently used to help manage state about a tiltfile build.
    12  type BuildEntry struct {
    13  	Name                  model.ManifestName
    14  	FilesChanged          []string
    15  	BuildReason           model.BuildReason
    16  	Args                  []string
    17  	TiltfilePath          string
    18  	CheckpointAtExecStart logstore.Checkpoint
    19  	LoadCount             int
    20  	ArgsChanged           bool
    21  }
    22  
    23  func (be *BuildEntry) WithLogger(ctx context.Context, st store.RStore) context.Context {
    24  	return store.WithManifestLogHandler(ctx, st, be.Name, SpanIDForLoadCount(be.Name, be.LoadCount))
    25  }