Skip to content

Commit

Permalink
build_config: support the latest release of pkg:yaml (dart-lang#2908)
Browse files Browse the repository at this point in the history
Pass Uri instead of String when parsing BuildConfig
  • Loading branch information
kevmoo authored Dec 2, 2020
1 parent a02d039 commit 74ab71d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion build_config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 0.4.4-dev
## 0.4.4

- Support the latest `pkg:yaml`.

## 0.4.3

Expand Down
2 changes: 1 addition & 1 deletion build_config/lib/src/build_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class BuildConfig {
(map) =>
BuildConfig.fromMap(packageName, dependencies, map ?? const {}),
allowNull: true,
sourceUrl: configYamlPath,
sourceUrl: configYamlPath == null ? null : Uri.file(configYamlPath),
);
} on ParsedYamlException catch (e) {
throw ArgumentError(e.formattedMessage);
Expand Down
6 changes: 3 additions & 3 deletions build_config/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: build_config
version: 0.4.4-dev
version: 0.4.4
description: Support for parsing `build.yaml` configuration.
homepage: https://github.com/dart-lang/build/tree/master/build_config
repository: https://github.com/dart-lang/build/tree/master/build_config

environment:
sdk: '>=2.9.0 <3.0.0'
Expand All @@ -12,7 +12,7 @@ dependencies:
meta: ^1.1.0
path: ^1.4.0
pubspec_parse: ^0.1.5
yaml: ^2.1.11
yaml: '>=2.1.11 <4.0.0'

dev_dependencies:
build_runner: ^1.0.0
Expand Down

0 comments on commit 74ab71d

Please sign in to comment.