Skip to content

Add a cooldown option to hex.outdated #1113

@elfenlaid

Description

@elfenlaid

What

It would be nice to have a flag that filters out outdated packages based on their date of publication.

For example, mix hex.outdated --cooldown=7-days will mark outdated packages that were published less than 7 days ago as Update not possible despite their versions.

Why

The motivation behind it is that some supply chain attacks could be mitigated or softened by introduction of dependency cooldowns: https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns

Another thing is that even minor tweaks create unexpected consequences. For example Default response_encodings change in 1.10.0 breaks HTTP client compatibility · Issue #557 · mtrudel/bandit was introduced partly by changing compression priority (there was a larger bug with compression going on underneath, but it was hard to notice due to the compression algorithm in question being rarely if ever called).

All in all, taking a more conservative stance on dependency updates could be beneficial. On the other hand, I'm not sure whether this approach is something that the Hex team wants to "promote" by adding cooldown flags.

Next

It would be nice to hear thoughts from the Hex team regarding this issue. Whether this approach makes sense in general and whether it is applicable to the hex.outdated command.

If it does sound like something worth adding to hex.outdated, I am more than willing to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions