Implement bot compiler and launcher #129
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wayfinder child of: #126
Implement compilation of arbitrary .nim bot files and launching them as subprocesses pointed at the running server. Handle compilation errors, process lifecycle, cleanup.
Blocked by: nothing
Grilling Revisions
Compilation:
nim cinvoked from the garage root directory. The garage'sconfig.nims(with--path:"../common_libs") applies automatically — no explicit path flags needed.Bot directory generation: Framework auto-generates a temp directory per bot containing:
version: "1.0.0",gameTypes: ["classic"], optionalinitialPosition#!/bin/sh\nexec ./binary_name)Cleanup: temp directories removed after test.
Errors: compilation failure surfaces compiler output clearly, test fails (not silent).
Spec additions from grilling
nim cdirectly, NOTnimble build(nimble swallows compiler output, making errors hard to diagnose).--pathflags for common_libs dependencies (e.g. radar_lock).Implemented in commit
57a1915.