Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(outdated): error when there are no config files #27306

Merged

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Dec 10, 2024

This commit changes "deno outdated" subcommand to
error out if run in a directory that has no config file
(including parent directories). This matches
"pnpm" behavior.

Also added tests for filtering that yields no results,
to ensure that it exists cleanly, that also matches "pnpm"
behavior.

Closes #27287

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Looks almost good to me. I'm not sure about the lockfile check.

tests/specs/update/no_lockfile/__test__.jsonc Outdated Show resolved Hide resolved
tests/specs/update/no_config_file/__test__.jsonc Outdated Show resolved Hide resolved
cli/tools/registry/pm/outdated.rs Outdated Show resolved Hide resolved
cli/tools/registry/pm/outdated.rs Show resolved Hide resolved
bartlomieju and others added 6 commits December 10, 2024 14:41
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
@bartlomieju bartlomieju changed the title fix(outdated): error when there are no config files or lockfile fix(outdated): error when there are no config files Dec 10, 2024
@bartlomieju bartlomieju requested a review from dsherret December 10, 2024 22:45
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@bartlomieju bartlomieju enabled auto-merge (squash) December 10, 2024 23:03
@bartlomieju bartlomieju merged commit 7c8b55b into denoland:main Dec 10, 2024
17 checks passed
bartlomieju added a commit that referenced this pull request Dec 11, 2024
This commit changes "deno outdated" subcommand to
error out if run in a directory that has no config file 
(including parent directories). This matches
"pnpm" behavior.

Also added tests for filtering that yields no results,
to ensure that it exists cleanly, that also matches "pnpm"
behavior.

Closes #27287

---------

Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
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.

deno outdated prints nothing if no config file is found or there's nothing to update
2 participants