Skip to content

Commit 1fe5686

Browse files
authored
Relax assumptions on workspaces in firehose (#375)
1 parent 96ee861 commit 1fe5686

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

pkgs/firehose/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Make the PR health output less verbose by collapsing warnings by default.
44
- Bump dart_apitool to fix errors with equal types being reported as different.
55
- Give comment files in health work.
6+
- Don't ignore workspace pubspecs.
67

78
## 0.12.0
89

pkgs/firehose/lib/src/repo.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,14 @@ class Repository {
6262
if (pubspecFile.existsSync()) {
6363
var pubspec = yaml.loadYaml(pubspecFile.readAsStringSync()) as Map;
6464
var publishTo = pubspec['publish_to'] as String?;
65-
if (publishTo != 'none' && !pubspec.containsKey('workspace')) {
65+
if (publishTo != 'none') {
66+
print('Found published package at $directory');
6667
packages.add(Package(directory, this));
67-
// There is an assumption here that published, non-workspace packages do
68-
// not contain nested published packages.
68+
// There is an assumption here that published packages do not contain
69+
// nested published packages.
6970
return;
71+
} else {
72+
print('Ignoring non-published package at $directory');
7073
}
7174
}
7275
if (directory.existsSync()) {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: workspace
2+
3+
publish_to: none
4+
25
workspace:
36
- pkg_1
47
- pkg_2

0 commit comments

Comments
 (0)