]> Cypherpunks.ru repositories - goredo.git/blobdiff - targets.go
Raise copyright years in advance
[goredo.git] / targets.go
index 662612ea976b77f8418abc1d3c1fb4cb51ae541b..e19b90acb84e99c90acd5bc0d8c46e84d1313252 100644 (file)
@@ -1,6 +1,6 @@
 /*
 goredo -- djb's redo implementation on pure Go
-Copyright (C) 2020-2023 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2020-2024 Sergey Matveev <stargrave@stargrave.org>
 
 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
@@ -90,10 +90,10 @@ func collectWholeDeps(
        seen map[string]*Tgt,
 ) {
        for _, tgt := range tgts {
-               if _, exists := seen[tgt.a]; exists {
+               if _, exists := seen[tgt.rel]; exists {
                        continue
                }
-               seen[tgt.a] = tgt
-               collectWholeDeps(deps[tgt.a], deps, seen)
+               seen[tgt.rel] = tgt
+               collectWholeDeps(deps[tgt.rel], deps, seen)
        }
 }