diff --git a/sisi/rules.py b/sisi/rules.py index 69ccd92..dca2b25 100644 --- a/sisi/rules.py +++ b/sisi/rules.py @@ -210,9 +210,7 @@ def scope_lines(scope, cwd=None, migrate=True): if migrate: return _migrate(cwd)[0] dest, old = path(PROJECT, cwd), _legacy(cwd) - # The store copy first, the project file second: `_move` writes the project file before it removes the store - # copy, so a no-lock reader either reads the copy before it goes or knows the project file is already complete. - ls = lines(old) + ls = lines(old) # store copy first: writers fill the project file before removing it, so a no-wait read never misses both raw = store.regular(dest, True)[1] if dest and not os.path.islink(os.path.dirname(dest)) else None return list(dict.fromkeys(ls + ((_parse(raw.decode("utf-8", "replace"))) if raw is not None else [])))