diff --git a/CHANGELOG.md b/CHANGELOG.md index d44df57..0da90b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 3.0.3 + +* Fix a bug that caused all downstream users of `code_builder` to crash due to + `build_runner` trying to import our private builder (in `tool/`). Sorry for + the inconvenience. + ## 3.0.2 * Require `source_gen: ^0.7.5`. diff --git a/README.md b/README.md index fc8d974..d36b9ee 100644 --- a/README.md +++ b/README.md @@ -94,10 +94,16 @@ will be on a best-effort basis. ### Updating generated (`.g.dart`) files +> **NOTE**: There is currently a limitation in `build_runner` that requires +> a workaround for developing this package. We expect this to be unnecessary +> in the future. + Use [`build_runner`][build_runner]: ```bash +$ mv build.disabled.yaml build.yaml $ pub run build_runner build --delete-conflicting-outputs +$ mv build.yaml build.disabled.yaml ``` [build_runner]: https://pub.dartlang.org/packages/build_runner diff --git a/build.yaml b/build.disabled.yaml similarity index 100% rename from build.yaml rename to build.disabled.yaml diff --git a/pubspec.yaml b/pubspec.yaml index ffa34c3..3995e7f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: code_builder -version: 3.0.2 +version: 3.0.3 description: A fluent API for generating Dart code author: Dart Team homepage: https://github.com/dart-lang/code_builder @@ -14,6 +14,7 @@ dependencies: meta: ^1.0.5 dev_dependencies: + build: ^0.12.0 build_runner: ^0.7.9 built_value_generator: ^5.1.0 dart_style: ^1.0.0