Skip to content

feat(outdated): add --ignore to skip pinned dependencies#501

Open
jongio wants to merge 1 commit into
mainfrom
idea/outdated-ignore
Open

feat(outdated): add --ignore to skip pinned dependencies#501
jongio wants to merge 1 commit into
mainfrom
idea/outdated-ignore

Conversation

@jongio

@jongio jongio commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Adds a repeatable --ignore flag to azd app outdated for packages you have pinned on purpose.

Why

azd app outdated --exit-code is handy in CI, but a single dependency you are deliberately holding back (a major you have not migrated to yet, a package pinned for compatibility) makes the whole check fail every run. Today there is no way to say "I know about this one, skip it."

What

  • New --ignore flag. Names are matched case-insensitively.
  • Accepts a comma-separated list (--ignore react,typescript) or repeated flags (--ignore react --ignore typescript).
  • Ignored packages are removed from both the report and the outdated total before --exit-code is evaluated, so a run that is only outdated on ignored packages passes.
  • Works across every supported manager (npm, pnpm, yarn, pip, dotnet, go) since filtering happens on the normalized result.

Usage

azd app outdated --exit-code --ignore react,typescript

Tests

  • End-to-end: with two outdated packages, --ignore chalk keeps react and drops chalk; ignoring both (mixed case and padding) clears the --exit-code gate.
  • newIgnoreSet trims, lowercases, and drops empty entries; nil input yields a nil set.
  • filterIgnoredPackages removes matches case-insensitively and returns the input unchanged when nothing is ignored.

Closes #496

Add a repeatable --ignore flag to the outdated command so packages you have pinned on purpose stop showing up as outdated and stop tripping --exit-code in CI. Names are matched case-insensitively and accept a comma-separated list or repeated flags. Ignored packages are dropped from the report and the total before the exit-code gate is evaluated.

Closes #496

Co-authored-by: Copilot App <[email protected]>
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 12, 2026
@jongio jongio self-assigned this Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Website Preview

Your PR preview is ready!

📎 Preview URL: https://jongio.github.io/azd-app/pr/501/

This preview will be automatically cleaned up when the PR is closed.

github-actions Bot added a commit that referenced this pull request Jul 12, 2026
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.81%. Comparing base (dd00a47) to head (d7fb40b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #501      +/-   ##
==========================================
+ Coverage   60.77%   60.81%   +0.03%     
==========================================
  Files         223      223              
  Lines       28527    28554      +27     
==========================================
+ Hits        17337    17364      +27     
  Misses      10010    10010              
  Partials     1180     1180              
Flag Coverage Δ
unittests 60.81% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cli/src/cmd/app/commands/outdated.go 80.51% <100.00%> (+1.44%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Test This PR

A preview build (0.19.5-pr501) is ready for testing!

🌐 Website Preview

Live Preview: https://jongio.github.io/azd-app/pr/501/

One-Line Install (Recommended)

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/install-pr.ps1) } -PrNumber 501 -Version 0.19.5-pr501"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/install-pr.sh | bash -s 501 0.19.5-pr501

Uninstall

When you're done testing:

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/uninstall-pr.ps1) } -PrNumber 501"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/uninstall-pr.sh | bash -s 501

Build Info:

What to Test:
Please review the PR description and test the changes described there.

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

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add outdated --ignore to skip pinned dependencies

1 participant