Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Harness OS update fixture: copy term/ beside tui/ (#1481)

Bubu-Dudu-52hza1fceef1bf97
diff --git a/os/tests/build-update-fixture.py b/os/tests/build-update-fixture.py
index 2e905656b..bbcd7b0ac 100644
--- a/os/tests/build-update-fixture.py
+++ b/os/tests/build-update-fixture.py
@@ -80,13 +80,17 @@ def probe_versions(folder, architecture, expected, cli_name):
def copy_tui(source, destination):
- # Compile tracked source only; ignored files cannot quietly enter a fixture.
- paths = subprocess.check_output(['git', '-C', str(source), 'ls-files', '-z', '--', 'tui'], timeout=30)
+ # Compile tracked source only; ignored files cannot quietly enter a fixture. The crates tui
+ # depends on by path (`../term`, #1470) go beside it, where its Cargo.toml looks for them.
+ paths = subprocess.check_output(['git', '-C', str(source), 'ls-files', '-z', '--', 'tui', 'term'], timeout=30)
for value in paths.split(b'\0'):
if not value:
continue
relative = Path(os.fsdecode(value))
- target = destination / relative.relative_to('tui')
+ if relative.parts[0] == 'tui':
+ target = destination / relative.relative_to('tui')
+ else:
+ target = destination.parent / relative
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(source / relative, target, follow_symlinks=False)
manifest, lock = destination / 'Cargo.toml', destination / 'Cargo.lock'