Skip to content

Commit 6b80edc

Browse files
CI: make integration-test.sh work with Flutter 2.0.0.
1 parent a5b2685 commit 6b80edc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

objectbox/tool/integration-test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ cd "${root}/$1"
1515
flutter clean
1616
flutter pub get
1717

18-
flutter pub run build_runner build --delete-conflicting-outputs
18+
# Flutter ~2.0 fails: The pubspec.lock file has changed since the .dart_tool/package_config.json file was generated, please run "pub get" again.
19+
generateCmd="flutter pub run build_runner build --delete-conflicting-outputs"
20+
$generateCmd || (flutter pub get && $generateCmd)
1921

2022
# flutter drive is currently not available in GitHub Actions (TODO start an emulator/simulator?)
2123
if [[ "${GITHUB_ACTIONS:-}" == "" ]]; then

0 commit comments

Comments
 (0)