Skip to content

Commit 0e2e647

Browse files
authored
Use 'flutter pub global activate dartdoc' for Flutter packages. (#1428)
1 parent 47c70b1 commit 0e2e647

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 0.22.17
22

33
- Fixed lower dependency constraint for `cli_util`.
4+
- Use `flutter pub global activate dartdoc` for Flutter packages.
45

56
## 0.22.16
67

lib/src/sdk_env.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,11 @@ class ToolEnvironment {
429429
timeout: timeout,
430430
);
431431
} else {
432+
final command = usesFlutter ? _flutterSdk.flutterCmd : _dartSdk.dartCmd;
432433
if (!_globalDartdocActivated) {
433434
await runConstrained(
434435
[
435-
..._dartSdk.dartCmd,
436+
...command,
436437
'pub',
437438
'global',
438439
'activate',
@@ -447,7 +448,6 @@ class ToolEnvironment {
447448
);
448449
_globalDartdocActivated = true;
449450
}
450-
final command = usesFlutter ? _flutterSdk.flutterCmd : _dartSdk.dartCmd;
451451
return await runConstrained(
452452
[...command, 'pub', 'global', 'run', 'dartdoc', ...args],
453453
workingDirectory: packageDir,

lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pana
22
description: PAckage aNAlyzer - produce a report summarizing the health and quality of a Dart package.
3-
version: 0.22.17-dev
3+
version: 0.22.17
44
repository: https://github.com/dart-lang/pana
55
topics:
66
- tool

0 commit comments

Comments
 (0)