ensurePackagesHaveOutputs is used for backwards-compatibility with the old lockfile format where each SystemInfo had a StorePath but no Outputs.
(packages map[string]*Package)
| 135 | // ensurePackagesHaveOutputs is used for backwards-compatibility with the old |
| 136 | // lockfile format where each SystemInfo had a StorePath but no Outputs. |
| 137 | func 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 | } |
no test coverage detected