]> Cypherpunks.ru repositories - goredo.git/commitdiff
isModified check must only look at ifchanges
authorSergey Matveev <stargrave@stargrave.org>
Mon, 8 Nov 2021 14:54:59 +0000 (17:54 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 8 Nov 2021 14:54:59 +0000 (17:54 +0300)
run.go
usage.go

diff --git a/run.go b/run.go
index ca514578fcc9feaa0ee4d5d1110b09a427585d50..0178d726b9d9b476dbd01d1db45e713d0f5c80c0 100644 (file)
--- a/run.go
+++ b/run.go
@@ -143,7 +143,7 @@ func isModified(cwd, redoDir, tgt string) (bool, *Inode, error) {
                        }
                        return false, nil, err
                }
-               if m["Target"] != tgt {
+               if m["Type"] != DepTypeIfchange || m["Target"] != tgt {
                        continue
                }
                fd, err := os.Open(path.Join(cwd, tgt))
index bf27c1b8fc211fd5161ae7380d1143a31987e6e7..7de522f6c0aca1855cba15b7f9ae82ab41dc2ecc 100644 (file)
--- a/usage.go
+++ b/usage.go
@@ -24,7 +24,7 @@ import (
 )
 
 const (
-       Version  = "1.18.0"
+       Version  = "1.19.0"
        Warranty = `Copyright (C) 2020-2021 Sergey Matveev
 
 This program is free software: you can redistribute it and/or modify