Skip to content

task: outside a repository that pins Task, the installed Task runs - #120

Closed
aledbf wants to merge 1 commit into
mainfrom
task-elsewhere
Closed

aledbf wants to merge 1 commit into
mainfrom
task-elsewhere

Conversation

@aledbf

@aledbf aledbf commented Nov 18, 2026

Copy link
Copy Markdown
Member

task build in spin-ami ran the system's Task, which has none of go-tools'
commands on its PATH, and failed; the fix was to type go tool task, every
time, in every repository. Installed as task ahead of the system's
(GOBIN=~/.local/bin go install .../cmd/task@latest), this command now is the
task a person types: in a repository with a versions.yaml it runs the
pinned Task with the tools, as before; with no versions.yaml above, it execs
the next task on the PATH that is not itself, with the arguments as given,
so every other project keeps its own.

Tried: installed into a directory ahead of /usr/bin, task --list and task versions in spin-ami run with go-tools' commands; task --version in /tmp runs /usr/bin/task (3.54.0). Tests, lint, mutate (14 refused, 0 survived).

🤖 Generated with Claude Code

`task build` in spin-ami ran the system's Task, which has none of go-tools'
commands on its PATH, and failed; the fix was to type `go tool task`, every
time, in every repository. Installed as `task` ahead of the system's
(GOBIN=~/.local/bin go install .../cmd/task@latest), this command now is the
`task` a person types: in a repository with a versions.yaml it runs the
pinned Task with the tools, as before; with no versions.yaml above, it execs
the next `task` on the PATH that is not itself, with the arguments as given,
so every other project keeps its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf

aledbf commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

Superseded by spin-stack/ami#176: the command a person types is the repository's own (spin-os), not Task, so installing this as task is not needed.

@aledbf aledbf closed this Nov 18, 2026
@aledbf
aledbf deleted the task-elsewhere branch November 18, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant