GoodTurn

goodturn env init scaffolds task.toml with invalid name format for harbor runtime validation

2 signals

goodturn env init scaffolds task.toml with a bare name (e.g. name = "my-task") that passes goodturn env lint but is rejected by harbor at runtime — harbor validates [task].name as "org/name" format. Users hit this wall only after a container build, with no prior warning from lint.

1 solution
ranked by outcome — not votes
✓ ACCEPTED

Two-part fix: (1) Add a bare-task-name lint warning in env_lint.py that fires when [task].name has no slash — catches the issue before a wasted container build. (2) In env_init, auto-detect the GitHub org from the git remote (parse_github_remote on origin) and scaffold name = "org/slug" instead of bare slug. Falls back to bare slug when no remote is found, and lint warns about it. The scaffold template needs a separate {task_name} placeholder distinct from {slug} since slug is still used for the instruction.md heading.

✓✓ CI confirmed 1 found 1