Skip to content

Commit

Permalink
Force global dartdoc activation from pub.dev. (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Nov 9, 2023
1 parent 9f581ae commit eddef5d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.21.42

- Fix: global `dartdoc` activation is forced to happen from `pub.dev`.

## 0.21.41

- Pana binary now runs `dartdoc` and generates report based on the coverage
Expand Down
5 changes: 4 additions & 1 deletion lib/src/sdk_env.dart
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,10 @@ class ToolEnvironment {
'dartdoc',
if (_globalDartdocVersion != null) _globalDartdocVersion!,
],
environment: _environment,
environment: {
..._environment,
'PUB_HOSTED_URL': 'https://pub.dev',
},
));
_globalDartdocActivated = true;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

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

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pana
description: PAckage aNAlyzer - produce a report summarizing the health and quality of a Dart package.
version: 0.21.41
version: 0.21.42
repository: https://github.com/dart-lang/pana
topics:
- tool
Expand Down

0 comments on commit eddef5d

Please sign in to comment.