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

Function UpdateAndSaveStateHashFile

internal/lock/statehash.go:42–49  ·  view source on GitHub ↗
(args UpdateStateHashFileArgs)

Source from the content-addressed store, hash-verified

40}
41
42func UpdateAndSaveStateHashFile(args UpdateStateHashFileArgs) error {
43 newLock, err := getCurrentStateHash(args)
44 if err != nil {
45 return err
46 }
47
48 return cuecfg.WriteFile(stateHashFilePath(args.ProjectDir), newLock)
49}
50
51// SetIgnoreShellMismatch is used to disable the shell comparison when checking
52// if the state is up to date. This is useful when we don't load shellrc (e.g. running)

Callers 1

updateLockfileMethod · 0.92

Calls 3

WriteFileFunction · 0.92
getCurrentStateHashFunction · 0.85
stateHashFilePathFunction · 0.85

Tested by

no test coverage detected