Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 36b5eb6

Browse files
authored
Fix build_runner crashes. (#198)
1 parent cd54ee5 commit 36b5eb6

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.0.3
2+
3+
* Fix a bug that caused all downstream users of `code_builder` to crash due to
4+
`build_runner` trying to import our private builder (in `tool/`). Sorry for
5+
the inconvenience.
6+
17
## 3.0.2
28

39
* Require `source_gen: ^0.7.5`.

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,16 @@ will be on a best-effort basis.
9494
9595
### Updating generated (`.g.dart`) files
9696
97+
> **NOTE**: There is currently a limitation in `build_runner` that requires
98+
> a workaround for developing this package. We expect this to be unnecessary
99+
> in the future.
100+
97101
Use [`build_runner`][build_runner]:
98102
99103
```bash
104+
$ mv build.disabled.yaml build.yaml
100105
$ pub run build_runner build --delete-conflicting-outputs
106+
$ mv build.yaml build.disabled.yaml
101107
```
102108
103109
[build_runner]: https://pub.dartlang.org/packages/build_runner

build.yaml build.disabled.yaml

File renamed without changes.

pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: code_builder
2-
version: 3.0.2
2+
version: 3.0.3
33
description: A fluent API for generating Dart code
44
author: Dart Team <misc@dartlang.org>
55
homepage: https://github.com/dart-lang/code_builder
@@ -14,6 +14,7 @@ dependencies:
1414
meta: ^1.0.5
1515

1616
dev_dependencies:
17+
build: ^0.12.0
1718
build_runner: ^0.7.9
1819
built_value_generator: ^5.1.0
1920
dart_style: ^1.0.0

0 commit comments

Comments
 (0)