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

Function ensurePackagesHaveOutputs

internal/lock/package.go:137–144  ·  view source on GitHub ↗

ensurePackagesHaveOutputs is used for backwards-compatibility with the old lockfile format where each SystemInfo had a StorePath but no Outputs.

(packages map[string]*Package)

Source from the content-addressed store, hash-verified

135// ensurePackagesHaveOutputs is used for backwards-compatibility with the old
136// lockfile format where each SystemInfo had a StorePath but no Outputs.
137func ensurePackagesHaveOutputs(packages map[string]*Package) {
138 for _, pkg := range packages {
139 for sys, sysInfo := range pkg.Systems {
140 sysInfo.addOutputFromLegacyStorePath()
141 pkg.Systems[sys] = sysInfo
142 }
143 }
144}

Callers 2

GetFileFunction · 0.85
SaveMethod · 0.85

Calls 1

Tested by

no test coverage detected