MCPcopy Index your code
hub / github.com/jetify-com/devbox / SetOutputsForPackage

Method SetOutputsForPackage

internal/lock/lockfile.go:234–247  ·  view source on GitHub ↗
(pkg string, outputs []Output)

Source from the content-addressed store, hash-verified

232}
233
234func (f *File) SetOutputsForPackage(pkg string, outputs []Output) error {
235 p, err := f.Resolve(pkg)
236 if err != nil {
237 return err
238 }
239 if p.Systems == nil {
240 p.Systems = map[string]*SystemInfo{}
241 }
242 if p.Systems[nix.System()] == nil {
243 p.Systems[nix.System()] = &SystemInfo{}
244 }
245 p.Systems[nix.System()].Outputs = outputs
246 return f.Save()
247}
248
249func (f *File) isDirty() (bool, error) {
250 currentHash, err := cachehash.JSON(f)

Callers 1

FixMissingStorePathsMethod · 0.80

Calls 3

ResolveMethod · 0.95
SaveMethod · 0.95
SystemFunction · 0.92

Tested by

no test coverage detected