Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion agentinit/_project_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ def _run_detect(dest, project_path, content):
for line in f:
line = line.strip()
if line.startswith("go "):
go_version = line.split(" ")[1]
parts = line.split()
if len(parts) >= 2:
go_version = parts[1]
break

stack_updates["- **Language(s):** (not configured)"] = (
Expand Down
3 changes: 2 additions & 1 deletion agentinit/_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def _sync_single_router(
expected, read_error = _read_text(template_path, "template")
if read_error:
return "error", read_error
assert expected is not None
if expected is None:
return "error", "template read failed"

current = None
if os.path.isfile(dst):
Expand Down
Loading