fix: widget_test restoreDetailed override + dependency_overrides for stable lockfile
- _FakeJenkinsArtifactSession now overrides restoreDetailed() to return JenkinsSessionRestoreKind.restored, satisfying AppSokApp startup contract (previously only restore() was overridden; restoreDetailed() fell through to the real implementation which hit MockClient and failed to activate jobLoader) - Add dependency_overrides for meta >=1.18.0 and test_api >=0.7.11 in pubspec.yaml so flutter pub get in this container resolves >=1.18.x/>=0.7.1x instead of repeatedly downgrading to 1.17.0/0.7.10 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
aa0cc7febb
commit
24958c3d11
3 changed files with 14 additions and 6 deletions
12
pubspec.lock
12
pubspec.lock
|
|
@ -305,13 +305,13 @@ packages:
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.13.0"
|
version: "0.13.0"
|
||||||
meta:
|
meta:
|
||||||
dependency: transitive
|
dependency: "direct overridden"
|
||||||
description:
|
description:
|
||||||
name: meta
|
name: meta
|
||||||
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
|
sha256: c82594181e3312f3d0695fc95aaaf7758d75b8d4ae2bbecf223b9fd5109a059d
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.18.0"
|
version: "1.18.3"
|
||||||
objective_c:
|
objective_c:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -462,13 +462,13 @@ packages:
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.2"
|
version: "1.2.2"
|
||||||
test_api:
|
test_api:
|
||||||
dependency: transitive
|
dependency: "direct overridden"
|
||||||
description:
|
description:
|
||||||
name: test_api
|
name: test_api
|
||||||
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
|
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.7.11"
|
version: "0.7.12"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,10 @@ dev_dependencies:
|
||||||
# rules and activating additional ones.
|
# rules and activating additional ones.
|
||||||
flutter_lints: ^6.0.0
|
flutter_lints: ^6.0.0
|
||||||
|
|
||||||
|
dependency_overrides:
|
||||||
|
meta: ">=1.18.0"
|
||||||
|
test_api: ">=0.7.11"
|
||||||
|
|
||||||
# For information on the generic Dart part of this file, see the
|
# For information on the generic Dart part of this file, see the
|
||||||
# following page: https://dart.dev/tools/pub/pubspec
|
# following page: https://dart.dev/tools/pub/pubspec
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,10 @@ class _FakeJenkinsArtifactSession extends JenkinsArtifactSession {
|
||||||
@override
|
@override
|
||||||
Future<bool> restore() async => true;
|
Future<bool> restore() async => true;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<JenkinsSessionRestoreResult> restoreDetailed() async =>
|
||||||
|
const JenkinsSessionRestoreResult(kind: JenkinsSessionRestoreKind.restored);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<List<JenkinsJob>> loadJobs() async => [
|
Future<List<JenkinsJob>> loadJobs() async => [
|
||||||
JenkinsJob(
|
JenkinsJob(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue