MCPcopy
hub / github.com/jetify-com/devbox / IsOutputInBinaryCache

Method IsOutputInBinaryCache

internal/devpkg/narinfo_cache.go:33–41  ·  view source on GitHub ↗
(outputName string)

Source from the content-addressed store, hash-verified

31const useDefaultOutputs = "__default_outputs__"
32
33func (p *Package) IsOutputInBinaryCache(outputName string) (bool, error) {
34 if eligible, err := p.isEligibleForBinaryCache(); err != nil {
35 return false, err
36 } else if !eligible {
37 return false, nil
38 }
39
40 return p.areExpectedOutputsInCacheOnce(outputName)
41}
42
43// IsInBinaryCache returns true if the package is in the binary cache.
44// ALERT: Callers in a perf-sensitive code path should call FillNarInfoCache

Callers 1

InstallableForOutputMethod · 0.95

Tested by

no test coverage detected