]> Cypherpunks.ru repositories - goredo.git/blobdiff - dot.go
Use more shorter Cwd-relative paths
[goredo.git] / dot.go
diff --git a/dot.go b/dot.go
index 9199f7dd0e43099c010e972911831fdf8fd715bf..0ea2b4ae13fcffb9bd1fc858a329eadb216b8070 100644 (file)
--- a/dot.go
+++ b/dot.go
@@ -52,13 +52,13 @@ func dotWalker(data map[DotNodes]bool, tgt *Tgt) (map[DotNodes]bool, error) {
                }
                switch m["Type"] {
                case DepTypeIfcreate:
-                       data[DotNodes{tgt.String(), NewTgt(m["Target"]).String()}] = true
+                       data[DotNodes{tgt.rel, NewTgt(string(chunk)).rel}] = true
                case DepTypeIfchange:
                        dep = NewTgt(path.Join(tgt.h, m["Target"]))
                        if dep.a == tgt.a {
                                continue
                        }
-                       data[DotNodes{tgt.String(), dep.String()}] = false
+                       data[DotNodes{tgt.rel, dep.rel}] = false
                        if isSrc(dep) {
                                continue
                        }