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

option to validate that pubspec.lock is up to date #3470

Closed
DetachHead opened this issue Jun 22, 2022 · 1 comment
Closed

option to validate that pubspec.lock is up to date #3470

DetachHead opened this issue Jun 22, 2022 · 1 comment
Labels
type-enhancement A request for a change that isn't a bug

Comments

@DetachHead
Copy link

according to the docs, dart pub get uses the pubspec.lock file but will update it if it's outdated. however i want to be able to add a check in my CI that ensures that pubspec.lock is up to date, so this behavior is not ideal.

other package managers have this feature. some examples are npm ci and poetry lock --check

@sigurdm sigurdm added the type-enhancement A request for a change that isn't a bug label Jul 7, 2022
@sigurdm
Copy link
Contributor

sigurdm commented Jul 7, 2022

#3482 (still in draft) is introducing dart pub get --enforce-lockfile with a behaviour close to npm ci (it will fetch dependencies, but never upgrade).

Duplicate of #2890

@sigurdm sigurdm closed this as completed Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants