Skip to content

Commit

Permalink
[linter] Remove special handling of linter package in generate_packag…
Browse files Browse the repository at this point in the history
…e_config

The linter is moved from third_party to pkg, and the old copy has
been removed from DEPS for weeks now. Remove the workaround that
ignores an old copy of linter in third_party/pkg/linter.
Users who have updated without running gclient sync -D will
now get an error that they have two copies of the
linter package, and they will get a message that they should
run gclient sync -D when they run gclient sync.

This completes the migration of the linter package into the SDK
source repository.

This reverts most of https://dart-review.googlesource.com/c/sdk/+/321722
leaving a small refactoring cleanup in place.

Bug: dart-lang/linter#4411
Change-Id: Id5cdb3485e42e78743303d64370bc9f7899ad00e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325301
Reviewed-by: Jonas Termansen <[email protected]>
Reviewed-by: Phil Quitslund <[email protected]>
Commit-Queue: William Hesse <[email protected]>
  • Loading branch information
whesse authored and Commit Queue committed Sep 11, 2023
1 parent 79f650c commit 979f5d0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tools/generate_package_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ void main(List<String> args) {
for (final p in packages)
if (p.name == name) p
];
if (name == 'linter' && matches.length > 1) {
final oldLinter = matches.firstWhere((p) =>
p.rootUri.replaceAll(r'\', '/').endsWith('third_party/pkg/linter'));
packages.remove(oldLinter);
matches.remove(oldLinter);
}
if (matches.length > 1) {
print('Duplicates found for package:$name');
for (var package in matches) {
Expand Down

0 comments on commit 979f5d0

Please sign in to comment.