-
Notifications
You must be signed in to change notification settings - Fork 5.7k
feat(unstable): ability to only install dependencies older than a certain date #30752
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
base: main
Are you sure you want to change the base?
feat(unstable): ability to only install dependencies older than a certain date #30752
Conversation
…tain amount of time
How about supporting both absolute and relative timestamps using the ISO 8601 duration format? absolute: |
cli/args/flags.rs
Outdated
|
||
fn min_age_arg() -> Arg { | ||
Arg::new("minimum-release-age") | ||
.long("minimum-release-age") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably --minimum-dependency-age
, though it's a mouthful.
@petamoriken Yes, that sounds like a good idea. Also, just saw your issue. Will make sure this works with update and outdated before merging. |
df3613f
to
e5247a6
Compare
Inspired by pnpm https://x.com/boshen_c/status/1967798474667438299 and npm https://x.com/darcy/status/1967953846061371556
Not sure about flag name and not sure if this should always be relative or if it should be an absolute date. I don't like stuff likeEdit: This pr supports relative via a number, or ISO 8601 duration format, or RFC3339--before="$(date -v -7d)"
because it doesn't work on Windows and you can't use it in a config file.Ideally in the future this should also be able to be specified in the config file.
Needs test for:
deno add npm:package
deno outdated
deno run
deno install
Closes #30751