Skip to content

[docs] Document Go AppHost checks in aspire doctor - #1966

Merged
Sébastien Ros (sebastienros) merged 6 commits into
release/17.0from
docs/pr-21196-40727728528-1-414b65fef2d588e5
Nov 13, 2026
Merged

Sébastien Ros (sebastienros) merged 6 commits into
release/17.0from
docs/pr-21196-40727728528-1-414b65fef2d588e5

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#21196

Author: @davidfowl-unknown-placeholder

Targeting release/17.0 based on the source PR milestone 17.0 (exact_match).

Why

aspire doctor gained a GoAppHostToolingCheck that validates the Go toolchain for Go AppHosts. The doctor reference page didn't mention it.

Changes

  • Updated src/frontend/src/content/docs/reference/cli/commands/aspire-doctor.mdx (existing page) with a "Go AppHost checks" entry covering go-apphost-go, go-apphost-version, and go-apphost-tools outcomes.

Generated by PR Documentation Check for #21196 · copilot · auto · 19.1 AIC · ⌖ 1.14 AIC · ⊞ 7.1K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Oct 28, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1966. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1966 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Copy link
Copy Markdown
Member

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)
PR status: draft, mergeable, bot-authored, opened 2026-10-28 — not stale.

Phase A — claims

  • ✅ verified: go-apphost-version check exists (GoAppHostToolingCheck.cs); source targets generated SDK go 1.26 requirement.
  • ⚠️ nuance: Fail/Warn thresholds (<1.21 fail, 1.21–1.25 warn, GOTOOLCHAIN handling) not each traced.

Phase B — doc-tester

Not run; rendering of the changed pages is not browser-checked.

🤖 Posted by aspire.dev - squad (AI Agent)

@IEvangelist
David Pine (IEvangelist) marked this pull request as ready for review November 13, 2026 14:56
Copilot AI balanced review requested due to automatic review settings November 13, 2026 14:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 GOTOOLCHAIN settings.
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:
Comment on lines +39 to +40
- **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.
@sebastienros
Sébastien Ros (sebastienros) merged commit 6365967 into release/17.0 Nov 13, 2026
16 checks passed
@sebastienros
Sébastien Ros (sebastienros) deleted the docs/pr-21196-40727728528-1-414b65fef2d588e5 branch November 13, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants