Skip to content

Minimum age for dependencies #15973

@larry0x

Description

@larry0x

Problem

Recently there has been two high severity supply chain attacks on NPM:

In light of this, pnpm has introduced a minimumReleaseAge parameter, such that it will only install packages older than a chosen age: https://github.com/pnpm/pnpm/releases/tag/v10.16.0

I would recommend cargo implement a similar mechanism.

Proposed Solution

Do the same thing as pnpm.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-dependency-resolutionArea: dependency resolution and the resolverC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-addCommand-updateS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions