Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support latest package:analyzer #3368

Merged
merged 7 commits into from Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/dart.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _test/pubspec.yaml
Expand Up @@ -5,7 +5,7 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dev_dependencies:
analyzer: ">=1.0.0 <5.0.0"
analyzer: ">=1.0.0 <6.0.0"
build: any
build_config: any
build_modules: any
Expand Down
5 changes: 5 additions & 0 deletions build/CHANGELOG.md
@@ -1,3 +1,8 @@
## 2.3.1

- Allow the latest `package:analyzer`.
- Bump min sdk to 2.17.0.

## 2.3.0

- Support ^ in build extensions that don't use capture groups, which results
Expand Down
2 changes: 1 addition & 1 deletion build/lib/src/builder/file_deleting_builder.dart
Expand Up @@ -24,7 +24,7 @@ class FileDeletingBuilder implements PostProcessBuilder {
FileDeletingBuilder.withExcludes(
this.inputExtensions, Iterable<String> exclude,
{this.isEnabled = true})
: exclude = exclude.map((s) => Glob(s)).toList();
: exclude = exclude.map(Glob.new).toList();

@override
FutureOr<void> build(PostProcessBuildStep buildStep) {
Expand Down
6 changes: 3 additions & 3 deletions build/pubspec.yaml
@@ -1,13 +1,13 @@
name: build
version: 2.3.0
version: 2.3.1
description: A package for authoring build_runner compatible code generators.
repository: https://github.com/dart-lang/build/tree/master/build

environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=2.17.0 <3.0.0"

dependencies:
analyzer: ">=1.5.0 <5.0.0"
analyzer: ">=1.5.0 <6.0.0"
async: ^2.5.0
convert: ^3.0.0
crypto: ^3.0.0
Expand Down
2 changes: 1 addition & 1 deletion build_daemon/pubspec.yaml
Expand Up @@ -21,7 +21,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.0.0
analyzer: '>=3.4.0 <5.0.0'
analyzer: '>=3.4.0 <6.0.0'
# TODO: untangle analyzer dependency
built_value_generator: ^8.1.0
lints: '>=1.0.0 <3.0.0'
Expand Down
4 changes: 3 additions & 1 deletion build_modules/CHANGELOG.md
@@ -1,4 +1,6 @@
## 4.0.6-dev
## 4.0.6

- Allow the latest `package:analyzer`.

## 4.0.5

Expand Down
4 changes: 2 additions & 2 deletions build_modules/pubspec.yaml
@@ -1,13 +1,13 @@
name: build_modules
version: 4.0.6-dev
version: 4.0.6
description: Builders for Dart modules
repository: https://github.com/dart-lang/build/tree/master/build_modules

environment:
sdk: ">=2.14.0 <3.0.0"

dependencies:
analyzer: ^4.4.0
analyzer: '>=4.4.0 <6.0.0'
async: ^2.5.0
bazel_worker: ^1.0.0
build: ^2.0.0
Expand Down
3 changes: 2 additions & 1 deletion build_resolvers/CHANGELOG.md
@@ -1,9 +1,10 @@
## 2.0.10-dev
## 2.0.10

- Migrate from `LibraryElement#parts` to `LibraryElement#parts2`.
- Update min sdk constraint to `2.17.0` since this is the minimum selectable
(and testable) sdk.
- Use a constructor tearoff since our min sdk now supports them.
- Allow the latest `package:analyzer`.

## 2.0.9

Expand Down
4 changes: 2 additions & 2 deletions build_resolvers/pubspec.yaml
@@ -1,13 +1,13 @@
name: build_resolvers
version: 2.0.10-dev
version: 2.0.10
description: Resolve Dart code in a Builder
repository: https://github.com/dart-lang/build/tree/master/build_resolvers

environment:
sdk: ">=2.17.0 <3.0.0"

dependencies:
analyzer: ^4.6.0
analyzer: '>=4.6.0 <6.0.0'
async: ^2.5.0
build: ^2.0.0
crypto: ^3.0.0
Expand Down
3 changes: 2 additions & 1 deletion build_runner/CHANGELOG.md
@@ -1,5 +1,6 @@
## 2.2.1-dev
## 2.2.1

- Allow the latest `package:analyzer`.
- Stop ignoring the no_leading_underscores_for_library_prefixes lint in
generated build scripts, code_builder now does this for you.

Expand Down
4 changes: 2 additions & 2 deletions build_runner/pubspec.yaml
@@ -1,5 +1,5 @@
name: build_runner
version: 2.2.1-dev
version: 2.2.1
description: A build system for Dart code generation and modular compilation.
repository: https://github.com/dart-lang/build/tree/master/build_runner

Expand All @@ -9,7 +9,7 @@ environment:
dependencies:
args: ^2.0.0
async: ^2.5.0
analyzer: ">=1.4.0 <5.0.0"
analyzer: '>=4.4.0 <6.0.0'
build: ">=2.1.0 <2.4.0"
build_config: ">=1.1.0 <1.2.0"
build_daemon: ^3.1.0
Expand Down
6 changes: 1 addition & 5 deletions build_runner_core/pubspec.yaml
Expand Up @@ -27,7 +27,7 @@ dependencies:
yaml: ^3.0.0

dev_dependencies:
analyzer: ^4.6.0
analyzer: '>=4.6.0 <6.0.0'
build_runner: ^2.0.0
build_test: ^2.0.0
lints: '>=1.0.0 <3.0.0'
Expand All @@ -37,7 +37,3 @@ dev_dependencies:
test_process: ^2.0.0
_test_common:
path: ../_test_common

dependency_overrides:
build:
path: ../build
2 changes: 1 addition & 1 deletion build_test/pubspec.yaml
Expand Up @@ -24,6 +24,6 @@ dependencies:
watcher: ^1.0.0

dev_dependencies:
analyzer: ^4.6.0
analyzer: '>=4.6.0 <6.0.0'
collection: ^1.15.0
lints: '>=1.0.0 <3.0.0'
4 changes: 3 additions & 1 deletion build_vm_compilers/CHANGELOG.md
@@ -1,4 +1,6 @@
## 1.0.12-dev
## 1.0.12

- Allow the latest `package:analyzer`.

## 1.0.11

Expand Down
4 changes: 2 additions & 2 deletions build_vm_compilers/pubspec.yaml
@@ -1,13 +1,13 @@
name: build_vm_compilers
version: 1.0.12-dev
version: 1.0.12
description: Builder implementations wrapping Dart VM compilers.
repository: https://github.com/dart-lang/build/tree/master/build_vm_compilers

environment:
sdk: ">=2.17.0 <3.0.0"

dependencies:
analyzer: ^4.4.0
analyzer: '>=4.4.0 <6.0.0'
build: ^2.0.0
build_config: ^1.0.0
build_modules: ^4.0.0
Expand Down
4 changes: 3 additions & 1 deletion build_web_compilers/CHANGELOG.md
@@ -1,4 +1,6 @@
## 3.2.6-dev
## 3.2.6

- Allow the latest `package:analyzer`.

## 3.2.5

Expand Down
4 changes: 2 additions & 2 deletions build_web_compilers/pubspec.yaml
@@ -1,13 +1,13 @@
name: build_web_compilers
version: 3.2.6-dev
version: 3.2.6
description: Builder implementations wrapping Dart compilers.
repository: https://github.com/dart-lang/build/tree/master/build_web_compilers

environment:
sdk: ">=2.17.0 <3.0.0"

dependencies:
analyzer: ^4.4.0
analyzer: '>=4.4.0 <6.0.0'
archive: ^3.0.0
bazel_worker: ^1.0.0
build: ^2.0.0
Expand Down
8 changes: 1 addition & 7 deletions example/pubspec.yaml
Expand Up @@ -4,7 +4,7 @@ environment:
sdk: ">=2.17.0 <3.0.0"

dependencies:
analyzer: ">=2.0.0 <5.0.0"
analyzer: ">=2.0.0 <6.0.0"
build: ^2.0.0
# Not imported in code, but used to constrain `build.yaml` requirements
build_config: ^1.0.0
Expand All @@ -13,9 +13,3 @@ dev_dependencies:
build_runner: ^2.0.0
build_web_compilers: ^3.0.0
lints: '>=1.0.0 <3.0.0'

dependency_overrides:
build:
path: ../build
build_runner_core:
path: ../build_runner_core