garc-gws-agent-runtime/scripts/garc-core.py
林 駿甫 (Shunsuke Hayashi) 680bd433f4 fix: resolve set -euo pipefail silent exits and 3 related bugs
Root cause: bin/garc uses set -euo pipefail. Any command substitution
$(...) that returns exit 1 caused the entire garc process to exit
immediately with no output, making errors look silent.

Fixes:
- ingress.sh: add || true to all _find_queue_file $() assignments
  so set -e does not silently kill the process on missing queue items
- ingress.sh: _ingress_update_status returns 1 silently (callers
  print their own error); _ingress_done/fail print "Queue item not
  found" exactly once
- ingress.sh: _ingress_next result also guarded with || true
- drive.sh: garc drive info with no args now shows GARC workspace
  folder info instead of printing usage and exiting
- garc-core.py: replaced 210-line duplicate with a 3-line re-export
  from garc_core.py to prevent future divergence

Verified: verify/done/fail all print clear error on bad ID (exit 1),
drive info no-arg shows workspace folder, no regressions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 09:33:57 +09:00

3 lines
185 B
Python

# This file exists for backward compatibility (hyphenated filename).
# The canonical module is garc_core.py (underscore) — edit that file.
from garc_core import * # noqa: F401, F403