Repository navigation
[docs] Document Go AppHost checks in aspire doctor - #1966
Sébastien Ros (sebastienros) merged 6 commits into
Conversation
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]Recommendation: approve Source used: microsoft/aspire#21196 (merged 2026-10-28) Phase A — claims
Phase B — doc-testerNot run; rendering of the changed pages is not browser-checked. 🤖 Posted by aspire.dev - squad (AI Agent) |
There was a problem hiding this comment.
🟡 Changes recommended
The documentation misstates Go version/toolchain outcomes and omits that fallback discovery searches subdirectories only when no AppHost is configured.
2 open issues
What changed in this PR
This PR updates the aspire doctor reference for the Go AppHost tooling checks introduced in Aspire 17.0.
Changes:
- Describes when Go AppHost checks run.
- Documents failure, warning, and pass outcomes based on Go availability, version, and
GOTOOLCHAINsettings.
| File | Description |
|---|---|
src/frontend/src/content/docs/reference/cli/commands/aspire-doctor.mdx |
Adds Go AppHost checks and their diagnostic outcomes to the CLI reference. |
Review effort: Balanced
| - **SDK checks**: Reports .NET SDK availability and version | ||
| - **Container checks**: Validates container runtime availability, running status, and version. On Windows, this includes WSLc in addition to Docker and Podman; on other platforms only Docker and Podman are checked. Marks the active runtime `← active`, or `← explicitly selected` when chosen via `ASPIRE_CONTAINER_RUNTIME` | ||
| - **Environment checks**: Reports operating system information (type, version, and Linux distro details when available) and validates environment variables and other settings, including the JavaScript toolchain required by TypeScript AppHosts (npm, pnpm, Yarn, or Bun) | ||
| - **Go AppHost checks**: When the AppHost is a Go AppHost (the configured AppHost, or an `apphost.go` file in the current directory), validates the Go toolchain against the `go 1.26` directive used by the generated SDK and scaffolded `go.mod`. Other AppHost languages see no Go checks. The check reports: |
| - **Fail** (`go-apphost-version`) when Go is older than 1.21, or when the effective `GOTOOLCHAIN` is `local`, because Go never switches toolchains and can't satisfy `go 1.26`. | ||
| - **Warning** (`go-apphost-version`) when Go is 1.21 to 1.25. With `GOTOOLCHAIN` set to `path`, `local+path`, or `<name>+path`, Go only switches to a newer toolchain already on `PATH` (for example `go1.26.0`); with any other value, Go can download the required toolchain. A warning is also reported when `go version` produces no readable output. |
The unknown-arguments example ran 'aspire destroy --force' in a bash block, which the pipeline command options unit test flags as an undocumented option. Describe the invalid option in prose and keep the error output.

Documents changes from microsoft/aspire#21196
Author:
@davidfowl-unknown-placeholderTargeting
release/17.0based on the source PR milestone17.0(exact_match).Why
aspire doctorgained aGoAppHostToolingCheckthat validates the Go toolchain for Go AppHosts. The doctor reference page didn't mention it.Changes
src/frontend/src/content/docs/reference/cli/commands/aspire-doctor.mdx(existing page) with a "Go AppHost checks" entry coveringgo-apphost-go,go-apphost-version, andgo-apphost-toolsoutcomes.