]> Cypherpunks.ru repositories - goredo.git/commitdiff
Do not try to record directory dependency v0.7.1
authorSergey Matveev <stargrave@stargrave.org>
Thu, 7 Jan 2021 15:09:29 +0000 (18:09 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 7 Jan 2021 15:09:29 +0000 (18:09 +0300)
README
dep.go
usage.go

diff --git a/README b/README
index d948a31c66fb50e5826921e702d21450d056d22e..beb668858a62b617a044dec7ebad675ca1824c85 100644 (file)
--- 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 897be43c6bd0ec3a5daae788331af9acd3351f0c..a362a3840b5ded3a4b141bd85a8451bc0a624f7e 100644 (file)
--- 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
index e4f094432f37c1e88c417755edd4e2ca91cd65a9..9d37da365e12d1772ef287981ce83e2a7db63b10 100644 (file)
--- 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.