fix(update): pass the source before --agent
Every scheduled Update run since 2026-10-31 failed with 'Missing required argument: source': --agent takes several values and swallowed the source that followed it. update.sh now passes the source first. test_update.py had pinned the source as the last argument and so encoded the bug; it now requires the source right after add and claude-code as the only agent (negative control against the old order fails). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d9ea175a17
commit
e2157998d7
2 files changed
+4
-4
No files matched your search
@@ -36,10 +36,10 @@ class TestUpdate(unittest.TestCase):
|
||||
env={"PATH": f"{self.bin}:/usr/bin:/bin"},
|
||||
stdin=subprocess.DEVNULL,
|
||||
)
|
||||
calls = self.log.read_text(encoding="utf-8").splitlines()
|
||||
self.assertEqual([c.split()[-1] for c in calls], sources)
|
||||
calls = [c.split() for c in self.log.read_text(encoding="utf-8").splitlines()]
|
||||
self.assertEqual([c[c.index("add") + 1] for c in calls], sources)
|
||||
for call in calls:
|
||||
self.assertIn("--agent claude-code", call)
|
||||
self.assertEqual(call[call.index("--agent") + 1 :], ["claude-code"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user