From c7abb81fd80ddc3e53e9d0181aa59ade043d90ae Mon Sep 17 00:00:00 2001 From: melvspace Date: Mon, 5 Aug 2024 13:17:11 +0300 Subject: [PATCH] build: generate code by dependency order --- melos.yaml | 2 +- .../allure_report/lib/src/test_report.freezed.dart | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/melos.yaml b/melos.yaml index 0959cae..e307c5c 100644 --- a/melos.yaml +++ b/melos.yaml @@ -9,7 +9,7 @@ scripts: melos exec --scope=allure_server_cli -- dart pub global activate -s path . generate: | - melos exec --depends-on=build_runner -- dart run build_runner build -d + melos exec -c 1 --order-dependents --depends-on=build_runner -- dart run build_runner build -d test: | melos exec --dir-exists test --dir-exists allure-results -- rm -rf allure-results diff --git a/packages/allure_report/lib/src/test_report.freezed.dart b/packages/allure_report/lib/src/test_report.freezed.dart index cfac7a0..91cc76f 100644 --- a/packages/allure_report/lib/src/test_report.freezed.dart +++ b/packages/allure_report/lib/src/test_report.freezed.dart @@ -166,15 +166,19 @@ class _$TestReportImpl extends _TestReport { return identical(this, other) || (other.runtimeType == runtimeType && other is _$TestReportImpl && - (identical(other.start, start) || other.start == start) && - (identical(other.end, end) || other.end == end) && - (identical(other.error, error) || other.error == error) && + const DeepCollectionEquality().equals(other.start, start) && + const DeepCollectionEquality().equals(other.end, end) && + const DeepCollectionEquality().equals(other.error, error) && const DeepCollectionEquality() .equals(other._attachments, _attachments)); } @override - int get hashCode => Object.hash(runtimeType, start, end, error, + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(start), + const DeepCollectionEquality().hash(end), + const DeepCollectionEquality().hash(error), const DeepCollectionEquality().hash(_attachments)); @JsonKey(ignore: true)