Repository navigation
Add query-distro-packages skill for distro install lookups - #10590
mpatsoskon wants to merge 1 commit into
Conversation
Consumer counterpart to update-distro-packages: reads the existing
release-notes/{version}/distros/ JSON to answer "what do I need to
install .NET on {distro}?" questions, without editing that data or
depending on any external tool.
Fixes dotnet#10333
|
@dotnet-policy-service agree |
There was a problem hiding this comment.
🟡 Changes recommended
Package-selection and alternative-feed instructions can generate incorrect commands, and Ubuntu examples omit required elevation.
3 open findings
What changed in this PR
Adds a read-only skill for resolving distro-specific .NET installation packages and commands from published release metadata.
Changes:
- Defines version, distro, release, and package resolution.
- Adds worked Ubuntu and Fedora examples.
| File | Description |
|---|---|
.github/skills/query-distro-packages/SKILL.md |
Defines lookup and response behavior. |
.github/skills/query-distro-packages/references/example-queries.md |
Demonstrates representative queries. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| - **Dependencies** — the `dependencies[]` list; each `name` is the real package to install. See `../update-distro-packages/SKILL.md` for the full field reference. | ||
| - **.NET packages**: | ||
| - `dotnet_packages` present → these come from the distro's built-in feed. Use the top-level `install_command`, with `{packages}` substituted by the dependency + .NET package names, as-is. |
| - **Dependencies** — the `dependencies[]` list; each `name` is the real package to install. See `../update-distro-packages/SKILL.md` for the full field reference. | ||
| - **.NET packages**: | ||
| - `dotnet_packages` present → these come from the distro's built-in feed. Use the top-level `install_command`, with `{packages}` substituted by the dependency + .NET package names, as-is. | ||
| - Only `dotnet_packages_other` present → .NET isn't in the builtin feed. Show that feed's own `install_command` first (it registers the feed), then the normal install command for the packages it lists. Say plainly this is a non-default feed. |
| Version and release are both given, so steps 1 and 3 are trivial. `ubuntu.json` → release `24.04` has a builtin `dotnet_packages` entry, so the answer uses the plain install command: | ||
|
|
||
| ```bash | ||
| apt-get install -y ca-certificates libgssapi-krb5-2 libc6 libgcc-s1 libicu74 libstdc++6 libssl3t64 tzdata dotnet-sdk-10.0 |
nagilson
left a comment
There was a problem hiding this comment.
Thanks for your interest in contributing to dotnet!
I think we'd want to scope this out a bit better first... @richlander Are skills in dotnet/core accessible or consumed by users in some way? I recognize this is similar to what the install tool already has as a consumed skill in VS Code today.
This probably belongs in another repo, and the feedback from copilot should be addressed, though I'm unsure what the full motivation of putting it in would be. I think we're prioritizing efforts in other areas atm, FWIW.


Summary
.github/skills/query-distro-packages/SKILL.md, the consumer counterpart toupdate-distro-packages— reads the existingrelease-notes/{version}/distros/JSON to answer "what do I need to install .NET on {distro}?" questions.dotnetglobal tool is already present.Validation
backportsPPA case, with feed-registration command includedsupport-phasescan correctly picks10.0(active) over11.0(go-live/RC)Worked examples in
references/example-queries.md.Fixes #10333