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

Method IsUpToDateAndInstalled

internal/lock/lockfile.go:217–232  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

215// local hashes match, which generally indicates all packages are correctly
216// installed and print-dev-env has been computed and cached.
217func (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
234func (f *File) SetOutputsForPackage(pkg string, outputs []Output) error {
235 p, err := f.Resolve(pkg)

Callers 2

ensureStateIsUpToDateMethod · 0.80

Calls 4

isDirtyMethod · 0.95
isStateUpToDateFunction · 0.85
ConfigHashMethod · 0.65
ProjectDirMethod · 0.65

Tested by

no test coverage detected