Retire legacy SOT compatibility route

This commit is contained in:
Svrnty 2026-05-31 21:44:51 -04:00
parent 03c87d437b
commit c309b41e0c
2 changed files with 2 additions and 6 deletions

1
sot
View File

@ -1 +0,0 @@
.sot

View File

@ -3,7 +3,6 @@
from __future__ import annotations
import os
import re
from pathlib import Path
@ -29,10 +28,8 @@ def main() -> int:
if not (ROOT / ".sot").is_dir():
fail("missing canonical .sot directory")
legacy = ROOT / "sot"
if not legacy.is_symlink():
fail("legacy sot path must be a temporary symlink")
if os.readlink(legacy) != ".sot":
fail("legacy sot symlink must target .sot")
if legacy.exists() or legacy.is_symlink():
fail("legacy sot path must be absent after compatibility retirement")
for relative in REQUIRED_FILES:
if not (ROOT / relative).is_file():