X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=sources.go;h=f57dbaf3b37f49324ec5a54dac3008051dad16ff;hb=60540b7e2988b9c8291bf18409cccbcb26cd356d;hp=ebfbcb9d9133e2d5ffa1fd09fb299f8c8dfe6c95;hpb=d8abe40c66df8d79a025524c0d230959cacf9465;p=goredo.git diff --git a/sources.go b/sources.go index ebfbcb9..f57dbaf 100644 --- a/sources.go +++ b/sources.go @@ -1,6 +1,6 @@ /* goredo -- djb's redo implementation on pure Go -Copyright (C) 2020-2021 Sergey Matveev +Copyright (C) 2020-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,10 +40,10 @@ func sourcesWalker(tgts []string) ([]string, error) { return nil, err } depInfo, err := depRead(fdDep) + fdDep.Close() if err != nil { return nil, err } - fdDep.Close() for _, m := range depInfo.ifchanges { depTgt := m["Target"] depTgtAbsPath, err := filepath.Abs(path.Join(cwd, depTgt))