Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct a regression for a package with a specified set of included libraries #3825

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented Aug 1, 2024

In 12d271a we change what libraries can count as a 'canonical library', such that when a set of libraries is specified with the 'include' option, any library not in the 'include' list is not canonical. This breaks a few things.

The fix is to add all libraries to the _allLibraries field, not taking the 'include' list into consideration. Then when we decide what libraries are considered to be part of a package, we filter down to 'included' libraries.

Fixes #3823 and fixes #3826


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

…ibraries

In 12d271a we change what libraries can count
as a 'canonical library', such that when a set of libraries is specified with
the 'include' option, any library not in the 'include' list is not canonical.
This breaks a few things.

The fix is to add all libraries to the `_allLibraries` field, not taking the
'include' list into consideration. Then when we decide what libraries are
considered to be part of a package, we filter down to 'included' libraries.
@kevmoo
Copy link
Member

kevmoo commented Aug 1, 2024

@srawlins – since Danny mentioned the latest beta – will this need to be cherry picked?

@srawlins
Copy link
Member Author

srawlins commented Aug 1, 2024

I don't think so. I suspect include: is almost never used.

@srawlins
Copy link
Member Author

srawlins commented Aug 1, 2024

CC @dart-lang/analyzer-team ready for review

@srawlins srawlins merged commit f24562a into dart-lang:main Aug 2, 2024
9 checks passed
@srawlins srawlins deleted the fix-3823 branch August 2, 2024 16:24
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Aug 5, 2024
Revisions updated by `dart tools/rev_sdk_deps.dart`.

dartdoc (https://github.com/dart-lang/dartdoc/compare/5230f8f..ce09815):
  ce098154  2024-08-02  Sam Rawlins  Bump to 8.0.13 (dart-lang/dartdoc#3827)
  f24562a6  2024-08-02  Sam Rawlins  Correct a regression for a package with a specified set of included libraries (dart-lang/dartdoc#3825)
  1e6d5513  2024-08-01  dependabot[bot]  Bump the github-actions group with 3 updates (dart-lang/dartdoc#3824)

ecosystem (https://github.com/dart-lang/ecosystem/compare/2635536..f977423):
  f977423  2024-08-01  dependabot[bot]  Bump the github-actions group with 4 updates (dart-lang/ecosystem#283)

webdriver (https://github.com/google/webdriver.dart/compare/718e4c3..b181c9e):
  b181c9e  2024-08-02  dependabot[bot]  Bump dart-lang/setup-dart from 1.6.4 to 1.6.5 (google/webdriver.dart#302)

webkit_inspection_protocol (https://github.com/google/webkit_inspection_protocol.dart/compare/32fffa5..119b877):
  119b877  2024-08-02  Kevin Moore  blast_repo fixes (google/webkit_inspection_protocol.dart#127)

Change-Id: I059f0df5aaca7d64829972d9c7bb8f40bfd1e1fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/378576
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants