Skip to content

Commit 69889c9

Browse files
Ignore .cxx/ directories (#9268)
Android builds now create .cxx directories in some cases; this has been added to the app template's ignore file, so should be ignored here as well. As is generally the case for this repo, we ignore it at the root level instead of updating every package.
1 parent 5057b0c commit 69889c9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ GeneratedPluginRegistrant.*
5353
.gradle/
5454
gradlew
5555
gradlew.bat
56+
.cxx/
5657

5758
.project
5859
.classpath

script/tool/lib/src/drive_examples_command.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ class DriveExamplesCommand extends PackageLoopingCommand {
7171

7272
@override
7373
bool shouldIgnoreFile(String path) {
74-
return isRepoLevelNonCodeImpactingFile(path) || isPackageSupportFile(path);
74+
return isRepoLevelNonCodeImpactingFile(path) ||
75+
isPackageSupportFile(path) ||
76+
// This isn't part of isRepoLevelNonCodeImpactingFile since there could
77+
// potentially be code-based commands that it could affect, but it
78+
// should not affect integration tests, and they are the most expensive
79+
// and flaky tests.
80+
path == '.gitignore';
7581
}
7682

7783
@override

script/tool/test/drive_examples_command_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,7 @@ packages/package_a/$file
17631763
FakeProcessInfo(MockProcess(stdout: '''
17641764
README.md
17651765
CODEOWNERS
1766+
.gitignore
17661767
packages/package_a/CHANGELOG.md
17671768
''')),
17681769
];

0 commit comments

Comments
 (0)