Skip to content

Commit e2275ba

Browse files
authored
update sdk dep; upgrade to the latest package:lints (#408)
update sdk dep; upgrade to the latest package:lints
1 parent 81bb7e3 commit e2275ba

File tree

8 files changed

+22
-10
lines changed

8 files changed

+22
-10
lines changed

.github/workflows/dart.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15-
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
sdk: ['3.0', stable, beta]
1619
steps:
1720
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
18-
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
21+
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
22+
with:
23+
sdk: ${{ matrix.sdk }}
1924

2025
- name: Install dependencies
2126
run: dart pub get

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.9.5
2+
3+
- Update the SDK constraint to 3.0.
4+
- Rev to the latest version of `package:lints`.
5+
16
## 0.9.4
27

38
- Update the SDK constraint to `>=2.17.0 <4.0.0`.

bin/_boot.dart

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
/// The main entry-point (`bin/grinder.dart`) trampolines into a different
77
/// script; running with `_boot.dart` instead allows you to hit breakpoints when
88
/// debugging.
9+
library;
10+
911
import 'package:grinder/grinder.dart';
1012

1113
Future<dynamic> main(List<String> args) => grind(args);

lib/grinder_sdk.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ String? _parseVersion(String output) {
547547
}
548548

549549
class _PubGlobalApp extends PubApp {
550-
_PubGlobalApp(String packageName) : super._(packageName);
550+
_PubGlobalApp(super.packageName) : super._();
551551

552552
@override
553553
bool get isGlobal => true;
@@ -580,7 +580,7 @@ class _PubGlobalApp extends PubApp {
580580
}
581581

582582
class _PubLocalApp extends PubApp {
583-
_PubLocalApp(String packageName) : super._(packageName);
583+
_PubLocalApp(super.packageName) : super._();
584584

585585
@override
586586
bool get isGlobal => false;

lib/src/annotations.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ class Depends {
5050
///
5151
/// Use this instead of [Task] when defining the default task.
5252
class DefaultTask extends Task {
53-
const DefaultTask([String? description]) : super(description);
53+
const DefaultTask([super.description]);
5454
}

lib/src/cli.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'cli_util.dart';
1313
import 'singleton.dart' as singleton;
1414

1515
// This version must be updated in tandem with the pubspec version.
16-
const String appVersion = '0.9.4';
16+
const String appVersion = '0.9.5';
1717

1818
List<String> grinderArgs() {
1919
if (_args == null) fail('grinderArgs() may only be called after grind().');

pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: grinder
22
# This version must be updated in tandem with the lib/src/cli.dart version.
3-
version: 0.9.4
3+
version: 0.9.5
44
description: >-
55
Grinder is a task runner for Dart, helping to define and automate common
66
project workflows.
77
repository: https://github.com/google/grinder.dart
88

99
environment:
10-
sdk: '>=2.17.0 <4.0.0'
10+
sdk: ^3.0.0
1111

1212
dependencies:
1313
cli_util: ^0.4.0
@@ -17,7 +17,7 @@ dependencies:
1717
collection: ^1.15.0
1818

1919
dev_dependencies:
20-
lints: ^2.0.0
20+
lints: ^3.0.0
2121
test: ^1.17.0
2222

2323
executables:

tool/grind.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void checkInit() {
2828
final pubspec = temp.join('pubspec.yaml').createFile();
2929
pubspec.writeAsStringSync('''name: foo
3030
environment:
31-
sdk: '>=2.10.0 <3.0.0'
31+
sdk: '^3.0.0'
3232
3333
dependencies:
3434
grinder:

0 commit comments

Comments
 (0)