diff --git a/packages/shorebird_cli/lib/src/shorebird_build_mixin.dart b/packages/shorebird_cli/lib/src/shorebird_build_mixin.dart index 2bb96ed55..605952d4c 100644 --- a/packages/shorebird_cli/lib/src/shorebird_build_mixin.dart +++ b/packages/shorebird_cli/lib/src/shorebird_build_mixin.dart @@ -256,7 +256,7 @@ mixin ShorebirdBuildMixin on ShorebirdCommand { /// https://github.com/shorebirdtech/shorebird/issues/1101 for more info. Future _systemFlutterPubGet() async { const executable = 'flutter'; - final arguments = ['pub', 'get', '--offline']; + final arguments = ['--no-version-check', 'pub', 'get', '--offline']; final result = await process.run( executable, diff --git a/packages/shorebird_cli/test/src/commands/build/build_aar_command_test.dart b/packages/shorebird_cli/test/src/commands/build/build_aar_command_test.dart index 345e56ced..69fdb9ff7 100644 --- a/packages/shorebird_cli/test/src/commands/build/build_aar_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/build/build_aar_command_test.dart @@ -68,7 +68,7 @@ void main() { when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -204,7 +204,7 @@ ${lightCyan.wrap( verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/build/build_apk_command_test.dart b/packages/shorebird_cli/test/src/commands/build/build_apk_command_test.dart index d96f060c5..20903855a 100644 --- a/packages/shorebird_cli/test/src/commands/build/build_apk_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/build/build_apk_command_test.dart @@ -73,7 +73,7 @@ void main() { when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -190,7 +190,7 @@ ${lightCyan.wrap(p.join('build', 'app', 'outputs', 'apk', 'release', 'app-releas verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/build/build_app_bundle_command_test.dart b/packages/shorebird_cli/test/src/commands/build/build_app_bundle_command_test.dart index aec801936..e78f1d06c 100644 --- a/packages/shorebird_cli/test/src/commands/build/build_app_bundle_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/build/build_app_bundle_command_test.dart @@ -74,7 +74,7 @@ void main() { when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -267,7 +267,7 @@ ${lightCyan.wrap(p.join('build', 'app', 'outputs', 'bundle', '${flavor}Release', verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/build/build_ipa_command_test.dart b/packages/shorebird_cli/test/src/commands/build/build_ipa_command_test.dart index 5ddaf7d9b..00a348c07 100644 --- a/packages/shorebird_cli/test/src/commands/build/build_ipa_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/build/build_ipa_command_test.dart @@ -74,7 +74,7 @@ void main() { when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -204,7 +204,7 @@ ${lightCyan.wrap(p.join('build', 'ios', 'ipa', 'Runner.ipa'))}''', verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_aar_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_aar_command_test.dart index 4d98c324f..d22ae0a7b 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_aar_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_aar_command_test.dart @@ -218,7 +218,7 @@ void main() { when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -833,7 +833,7 @@ Please re-run the release command for this version or create a new release.'''), verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_android_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_android_command_test.dart index 526f47a08..01ecba57f 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_android_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_android_command_test.dart @@ -254,7 +254,7 @@ flutter: when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -776,7 +776,7 @@ Or change your Flutter version and try again using: verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart index aedb0f1d6..701396074 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart @@ -303,7 +303,7 @@ flutter: when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -810,7 +810,7 @@ Or change your Flutter version and try again using: verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart index 173d4f630..6e047584d 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart @@ -221,7 +221,7 @@ flutter: when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -742,7 +742,7 @@ Please re-run the release command for this version or create a new release.'''), verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/release/release_aar_command_test.dart b/packages/shorebird_cli/test/src/commands/release/release_aar_command_test.dart index fe6ac0e2f..97237b81c 100644 --- a/packages/shorebird_cli/test/src/commands/release/release_aar_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/release/release_aar_command_test.dart @@ -183,7 +183,7 @@ void main() { when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -410,7 +410,7 @@ void main() { verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/release/release_android_command_test.dart b/packages/shorebird_cli/test/src/commands/release/release_android_command_test.dart index 5ec261eb1..d9ee653b6 100644 --- a/packages/shorebird_cli/test/src/commands/release/release_android_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/release/release_android_command_test.dart @@ -160,7 +160,7 @@ void main() { when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -445,7 +445,7 @@ void main() { verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/release/release_ios_command_test.dart b/packages/shorebird_cli/test/src/commands/release/release_ios_command_test.dart index 712466491..876daf9b9 100644 --- a/packages/shorebird_cli/test/src/commands/release/release_ios_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/release/release_ios_command_test.dart @@ -179,7 +179,7 @@ flutter: when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -531,7 +531,7 @@ error: exportArchive: No signing certificate "iOS Distribution" found verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), diff --git a/packages/shorebird_cli/test/src/commands/release/release_ios_framework_command_test.dart b/packages/shorebird_cli/test/src/commands/release/release_ios_framework_command_test.dart index 522dbafdc..bc8500945 100644 --- a/packages/shorebird_cli/test/src/commands/release/release_ios_framework_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/release/release_ios_framework_command_test.dart @@ -151,7 +151,7 @@ flutter: when( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ), @@ -399,7 +399,7 @@ flutter: verify( () => shorebirdProcess.run( 'flutter', - ['pub', 'get', '--offline'], + ['--no-version-check', 'pub', 'get', '--offline'], runInShell: any(named: 'runInShell'), useVendedFlutter: false, ),