Open
Description
When we updated to version 5.3.2 we began seeing the following error in our builds:
Building package executable... (3.1s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 204ms
[INFO] Precompiling build script... completed, took 2.9s
[INFO] Building new asset graph completed, took 376ms
[INFO] Checking for unexpected pre-existing outputs. completed, took 2ms
[INFO] Generating SDK summary completed, took 2.3s
[WARNING] json_serializable on lib/src/model/google/token_info.dart:
The version constraint "^4.6.0" on json_annotation allows versions before 4.7.0 which is not allowed.
[SEVERE] mockito:mockBuilder on test/src/utilities/mocks.dart:
type 'SimpleIdentifierImpl' is not a subtype of type 'ListLiteral?' in type cast
[INFO] Running build completed, took 11.1s
[INFO] Caching finalized dependency graph completed, took 123ms
[SEVERE] Failed after 11.2s
If we use version 5.3.0 we do not see these errors.
I am creating mocks using the following command:
dart --verbose run build_runner build --delete-conflicting-outputs