Skip to content

Filter by prefix on no exact match - #442

Merged
nmattia merged 2 commits into
mainfrom
nm-filter-prefix
Aug 11, 2026
Merged

Filter by prefix on no exact match#442
nmattia merged 2 commits into
mainfrom
nm-filter-prefix

Conversation

@nmattia

@nmattia nmattia commented Aug 11, 2026

Copy link
Copy Markdown
Owner

No description provided.

@nmattia
nmattia requested a lite review from Copilot August 11, 2026 18:19
@nmattia

nmattia commented Aug 11, 2026

Copy link
Copy Markdown
Owner Author
Screenshot 2026-08-11 at 20 14 02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts niv update <PACKAGE> filtering so that when an exact package name isn’t found, the CLI falls back to selecting packages whose names start with the provided pattern (prefix match). This makes partial package-name updates possible while still preferring an exact match when available.

Changes:

  • Keep exact-match behavior for package selection when the provided pattern matches a package name exactly.
  • Fall back to prefix-based filtering when no exact match exists.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Niv/Cli.hs Outdated
@nmattia
nmattia merged commit dc6a42b into main Aug 11, 2026
2 checks passed
@nmattia
nmattia deleted the nm-filter-prefix branch August 11, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants