Skip to content

Report a dnx-style error when a tool version is missing from the feed - #8

Merged
kzu merged 1 commit into
mainfrom
dev/404
Aug 20, 2026
Merged

Report a dnx-style error when a tool version is missing from the feed#8
kzu merged 1 commit into
mainfrom
dev/404

Conversation

@kzu

@kzu kzu commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

When a pointer tool hops to a RID package that was never listed (wd.win-x64 on nuget.org today), dnx reports:

Version 0.1.5 of package wd.win-x64 is not found in NuGet feeds https://api.nuget.org/v3/index.json.

ndnx leaked the raw HTTP error from the flat-container index 404:

Response status code does not indicate success: 404 (Not Found).

Treat a missing package-index as an empty version list, and print the same not-found message dnx uses.

Test plan

  • PackageFeedTests cover index 404, empty version list, and a missing RID hop
  • dnx --yes retest (163 passed)
  • CI green

A never-listed package ID 404s the flat-container index. Treat that as
an empty version list and print the same not-found message dnx uses,
instead of leaking EnsureSuccessStatusCode's raw HTTP 404.
@kzu kzu added the enhancement New feature or request label Aug 20, 2026
@kzu
kzu merged commit c7d440e into main Aug 20, 2026
2 checks passed
@kzu
kzu deleted the dev/404 branch August 20, 2026 19:12
@kzu

kzu commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

166 passed 166 passed

🧪 Details on Ubuntu 24.04.4 LTS

from retest v1.1.0 on .NET 10.0.11 with 💜 by @devlooped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant