fix: start.sh siempre recompila el launcher antes de arrancar
Elimina la condición que solo recompilaba si había cambios en cmd/launcher/. Go compila rápido y esto evita binarios stale cuando hay cambios en pkg/, agents/, tools/, etc. Actualiza también el progreso de la tarea 09.
This commit is contained in:
@@ -16,15 +16,13 @@ BIN="$REPO_ROOT/bin/launcher"
|
||||
LOG="$(launcher_log_file)"
|
||||
PID_F="$(launcher_pid_file)"
|
||||
|
||||
# Build if needed
|
||||
if [[ ! -x "$BIN" ]] || [[ "$(find ./cmd/launcher -newer "$BIN" 2>/dev/null | head -1)" ]]; then
|
||||
info "Ejecutando tests..."
|
||||
"$GO" test -tags goolm ./... || fail "Tests fallaron — corrige antes de compilar"
|
||||
# Always rebuild — Go is fast and avoids stale binaries from changes in pkg/, agents/, etc.
|
||||
info "Ejecutando tests..."
|
||||
"$GO" test -tags goolm ./... || fail "Tests fallaron — corrige antes de compilar"
|
||||
|
||||
info "Compilando launcher..."
|
||||
mkdir -p "$(dirname "$BIN")"
|
||||
"$GO" build -tags goolm -o "$BIN" ./cmd/launcher || fail "Error de compilación"
|
||||
fi
|
||||
info "Compilando launcher..."
|
||||
mkdir -p "$(dirname "$BIN")"
|
||||
"$GO" build -tags goolm -o "$BIN" ./cmd/launcher || fail "Error de compilación"
|
||||
|
||||
info "Iniciando launcher unificado..."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user