Skip to content

Commit c58ac67

Browse files
committed
Enforce the resolution of the current pubspec.lock
Fail the `pub get` with an error message if the pubspec.lock does not exactly specify a valid resolution of pubspec.yaml or if any content hash of a hosted package has changed.
1 parent 1912ff2 commit c58ac67

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/check-flutter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
flutter-version-file: pubspec.yaml
1818
cache: true
1919
- name: Install dependencies
20-
run: flutter pub get
20+
run: flutter pub get --enforce-lockfile
2121
- name: Check formatting
2222
run: dart format --output=none --set-exit-if-changed .
2323

@@ -34,7 +34,7 @@ jobs:
3434
flutter-version-file: pubspec.yaml
3535
cache: true
3636
- name: Install dependencies
37-
run: flutter pub get
37+
run: flutter pub get --enforce-lockfile
3838
- name: Check lints
3939
run: flutter analyze
4040

@@ -51,6 +51,6 @@ jobs:
5151
flutter-version-file: pubspec.yaml
5252
cache: true
5353
- name: Install dependencies
54-
run: flutter pub get
54+
run: flutter pub get --enforce-lockfile
5555
- name: Run tests
5656
run: flutter test

0 commit comments

Comments
 (0)