Skip to content

Commit c055526

Browse files
authored
fix an issue where we created a temporary directory when performing a dry run (#3334)
1 parent 1f6c8db commit c055526

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
## 6.2.0-dev
22

3-
* Stop generating a null-safety badge for elements
4-
in a null-safe library. (#3295)
3+
* Stop generating a null-safety badge for elements in a null-safe library.
4+
(#3295)
55
* Use a sun icon for switching to the light theme. (#3309)
66
* Standardize the search icon style to a new SVG. (#3302)
77
* Remove CSS classes no longer used in dartdoc generated content. (#3302)
8+
* Fix an issue where we created a temporary directory when performing a dry run.
9+
(#3333)
810

911
## 6.1.5
1012

lib/options.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class DartdocProgramOptionContext extends DartdocGeneratorOptionContext
5959
super.optionSet, super.resourceProvider)
6060
: super.fromDefaultContextLocation();
6161

62+
/// Whether to generate docs or perform a dry run.
6263
bool get generateDocs => optionSet['generateDocs'].valueAt(context);
6364
bool get help => optionSet['help'].valueAt(context);
6465
bool get version => optionSet['version'].valueAt(context);

lib/src/dartdoc.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,6 @@ class Dartdoc {
204204
var libs = packageGraph.libraryCount;
205205
logInfo("Initialized dartdoc with $libs librar${libs == 1 ? 'y' : 'ies'}");
206206

207-
// Create the out directory.
208-
if (!_outputDir.exists) _outputDir.create();
209-
210207
runtimeStats.startPerfTask('generator.generate');
211208
await generator.generate(packageGraph);
212209
runtimeStats.endPerfTask();

0 commit comments

Comments
 (0)