(projectDir string)
| 72 | } |
| 73 | |
| 74 | func readStateHashFile(projectDir string) (*stateHashFile, error) { |
| 75 | hashFile := &stateHashFile{} |
| 76 | err := cuecfg.ParseFile(stateHashFilePath(projectDir), hashFile) |
| 77 | if errors.Is(err, fs.ErrNotExist) { |
| 78 | return hashFile, nil |
| 79 | } |
| 80 | if err != nil { |
| 81 | return nil, err |
| 82 | } |
| 83 | return hashFile, nil |
| 84 | } |
| 85 | |
| 86 | func getCurrentStateHash(args UpdateStateHashFileArgs) (*stateHashFile, error) { |
| 87 | nixHash, err := manifestHash(args.ProjectDir) |
no test coverage detected