IsUpToDateAndInstalled returns true if the lockfile is up to date and the local hashes match, which generally indicates all packages are correctly installed and print-dev-env has been computed and cached.
(isFish bool)
| 215 | // local hashes match, which generally indicates all packages are correctly |
| 216 | // installed and print-dev-env has been computed and cached. |
| 217 | func (f *File) IsUpToDateAndInstalled(isFish bool) (bool, error) { |
| 218 | if dirty, err := f.isDirty(); err != nil { |
| 219 | return false, err |
| 220 | } else if dirty { |
| 221 | return false, nil |
| 222 | } |
| 223 | configHash, err := f.devboxProject.ConfigHash() |
| 224 | if err != nil { |
| 225 | return false, err |
| 226 | } |
| 227 | return isStateUpToDate(UpdateStateHashFileArgs{ |
| 228 | ProjectDir: f.devboxProject.ProjectDir(), |
| 229 | ConfigHash: configHash, |
| 230 | IsFish: isFish, |
| 231 | }) |
| 232 | } |
| 233 | |
| 234 | func (f *File) SetOutputsForPackage(pkg string, outputs []Output) error { |
| 235 | p, err := f.Resolve(pkg) |
no test coverage detected