X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=sources.go;fp=sources.go;h=d53e0e32501b880be35e737cf377602cf9f3ed5e;hb=4cf1dbe4348f796f043a85a62761be52dd7ef859;hp=659df3a51d9ff76e352dcbc104b62e7d01a8be6b;hpb=11bfb76bd12f2898c22b86dfeb3241607db5557a;p=goredo.git diff --git a/sources.go b/sources.go index 659df3a..d53e0e3 100644 --- a/sources.go +++ b/sources.go @@ -30,7 +30,7 @@ func sourcesWalker(tgts []string) ([]string, error) { cwd, f := path.Split(path.Join(Cwd, tgt)) fdDep, err := os.Open(path.Join(cwd, RedoDir, f+DepSuffix)) if err != nil { - if os.IsNotExist(err) { + if errors.Is(err, fs.ErrNotExist) { continue } return nil, ErrLine(err)