Skip to content

dart pub get --pristine/--locked #2890

@jonasfj

Description

@jonasfj

It would be nice to have a mode where dart pub get fails if pubspec.lock is missing or changes to pubspec.lock is required to satisfy pubspec.yaml.

Could be called dart pub get --locked or dart pub get --pristine.

Motivation: When doing a production build (or deployment) you explicitly want to avoid any deviation from pubspec.lock as this could result in shipping dependencies you have not tested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions