FdOODTgts *os.File
FdOODTgtsLock *os.File
- OODCache map[string]bool = make(map[string]bool)
- FileExistsCache map[string]bool = make(map[string]bool)
+ OODCache = make(map[string]bool)
+ FileExistsCache = make(map[string]bool)
ErrMissingTarget = errors.New("invalid format of .rec: missing Target")
)
func isOODByBuildUUID(cwd, tgtOrig string) bool {
cwd, tgt := cwdAndTgt(path.Join(cwd, tgtOrig))
depPath := path.Join(cwd, RedoDir, tgt+DepSuffix)
- fdDep, err := os.Open(depPath)
- if err != nil {
- return true
- }
- depInfo, err := depRead(fdDep)
- fdDep.Close()
- if err != nil || depInfo.build != BuildUUID {
- return true
- }
- return false
+ build, err := depReadBuild(depPath)
+ return err != nil || build != BuildUUID
}
func isOOD(cwd, tgtOrig string, level int, seen map[string]struct{}) (bool, error) {