Skip to content

Commit 58e2fc3

Browse files
authored
Fix issue with source_gen and unresolved annotations (#174)
1 parent 20bb145 commit 58e2fc3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build_cli/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.2.7
2+
3+
- Fix issue with latest version of `package:source_gen`.
4+
15
## 2.2.6
26

37
- Fix issue with latest version of `package:analyzer`.

build_cli/lib/src/build_cli_generator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import 'util.dart';
2222
/// Developers shouldn't need to access this class directly unless they are
2323
/// configuring a `package:source_gen` `PartBuilder` in code.
2424
class CliGenerator extends GeneratorForAnnotation<CliOptions> {
25-
const CliGenerator();
25+
const CliGenerator() : super(throwOnUnresolved: false);
2626

2727
@override
2828
Stream<String> generateForAnnotatedElement(

build_cli/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: build_cli
2-
version: 2.2.6
2+
version: 2.2.7
33
description: >-
44
Parse command line arguments directly into an annotation class
55
using the power of build_runner and source_gen.

0 commit comments

Comments
 (0)