Skip to content

Commit

Permalink
Fix the location of documentation package.tar.gz (#6915)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Aug 15, 2023
1 parent dd4a3df commit 4383aed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/test/task/end2end_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ void main() {
'/documentation/',
},
);

// Check if the documentation package.tar.gz exists.
final packageRs =
await issueGet('/documentation/oxygen/latest/package.tar.gz');
expect(packageRs.statusCode, 200);
}, timeout: Timeout(Duration(minutes: 15)));
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/pub_worker/lib/src/bin/dartdoc_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Future<void> _dartdoc({
.transform(tarWriter)
.transform(gzip.encoder)
.pipe(tmpTar.openWrite());
await tmpTar.rename(p.join(outputFolder, 'package.tar.gz'));
await tmpTar.rename(p.join(outputFolder, 'doc', 'package.tar.gz'));

_log.info('Finished .tar.gz archive');
}
Expand Down

0 comments on commit 4383aed

Please sign in to comment.