Include wiki links in error output#200
Merged
philiptaron merged 2 commits intoNixOS:mainfrom Feb 18, 2026
Merged
Conversation
2541a36 to
0551cc6
Compare
a9f5b88 to
389e3a6
Compare
mdaniels5757
approved these changes
Feb 17, 2026
Each error now shows its wiki URL. In terminal output, the NPV code is an OSC 8 clickable hyperlink; in plain text it's a parenthesized URL. Part of NixOS#99
For errors following "- path: message", the path is now bold and the message is red. The wiki link uses an OSC 8 hyperlink (clickable NPV code) in terminal output. Errors with other formats fall back to all-red with the link appended.
389e3a6 to
e36256d
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each error from
nixpkgs-vetnow includes a link to its wiki documentation page. In terminal output, the NPV code is a clickable OSC 8 hyperlink. Colored output uses bold for the path, red for the error message, and default color for the link.Errors that don't follow the
- path: messagepattern fall back to all-red with the link appended. Plain text output appends(https://github.com/NixOS/nixpkgs-vet/wiki/NPV-XXX)to each errorCompletes #99
Test plan
cargo testpassescargo fmt -- --checkpasses