(args UpdateStateHashFileArgs)
| 40 | } |
| 41 | |
| 42 | func 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) |
no test coverage detected