From 68c7d1136890bf7b70e78e3612d79965c261b68f Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 7 Jan 2021 18:09:29 +0300 Subject: [PATCH] Do not try to record directory dependency --- README | 2 +- dep.go | 7 +++++++ usage.go | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README b/README index d948a31..beb6688 100644 --- a/README +++ b/README @@ -28,7 +28,7 @@ problems with the authenticity on your side, then build it manually: > $ git clone git://git.cypherpunks.ru/goredo.git $ cd goredo - $ git tag -v v0.7.0 + $ git tag -v v0.7.1 $ git clone git://git.cypherpunks.ru/gorecfile.git $ ( cd gorecfile ; git tag -v v0.4.0 ) $ echo "replace go.cypherpunks.ru/recfile => `pwd`/gorecfile" >> go.mod diff --git a/dep.go b/dep.go index 897be43..a362a38 100644 --- a/dep.go +++ b/dep.go @@ -101,6 +101,13 @@ func writeDep(fdDep *os.File, cwd, tgt string) error { return err } defer fd.Close() + fi, err := fd.Stat() + if err != nil { + return err + } + if fi.IsDir() { + return nil + } ts, err := fileCtime(fd) if err != nil { return err diff --git a/usage.go b/usage.go index e4f0944..9d37da3 100644 --- a/usage.go +++ b/usage.go @@ -26,7 +26,7 @@ import ( ) const ( - Version = "0.7.0" + Version = "0.7.1" Warranty = `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 the Free Software Foundation, version 3 of the License. -- 2.44.0