Skip to content

Reset deprecation period for setPubRootDirectories - #139592

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
Piinks:updateDep
Dec 7, 2023
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
Piinks:updateDep

Conversation

@Piinks

@Piinks Piinks commented Dec 5, 2023

Copy link
Copy Markdown
Contributor

This deprecation period is being renewed after we found it affected many IDE plugins that had not yet migrated, but did not receive a warning during the deprecation period.
We also expected to have a migration guide since the migration is not always to simply rename to addPubRootDirectories. This will give another 1+ year for the migration to be completed.

Part of #139243
Will update announcement at flutter-announce to reflect this API will remain for a while longer.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie or stuartmorgan on the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Piinks
Piinks requested review from CoderDake and jacob314 December 5, 2023 21:45

@jacob314 jacob314 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Hixie

Hixie commented Dec 6, 2023

Copy link
Copy Markdown
Contributor

won't that make the message a lie?

@Piinks

Piinks commented Dec 6, 2023

Copy link
Copy Markdown
Contributor Author

won't that make the message a lie?

I think? We've done this a couple of times before to 'extend' the period. Should we create a different mechanism?

@Hixie

Hixie commented Dec 6, 2023

Copy link
Copy Markdown
Contributor

Well we shouldn't lie. :-)
Why does this impact the period?

@Piinks

Piinks commented Dec 6, 2023

Copy link
Copy Markdown
Contributor Author

I don't think we are lying. This is something we have done several times.

Why does this impact the period?

We determine the EOL based on the release tag: https://github.com/flutter/flutter/wiki/Tree-hygiene#deprecations

There are scripts based on the very precise wording of these deprecation messages. I think it is fine to propose a change for cases where we need to extend the period, but not in this PR. I don't see why this should be blocked on changing the process when this has already been in practice.

Screenshot 2023-12-06 at 1 28 25 PM

@Hixie

Hixie commented Dec 6, 2023

Copy link
Copy Markdown
Contributor

I guess I didn't realize that when we were changing those messages it was because we were extending the end of the period rather than reflecting a change to when the deprecation happened (e.g. because the deprecation covered new ground, or whatever). The intent of saying "This feature was deprecated after vX" was to indicate that in versions <X it's not deprecated and in versions >X it is, if we just bump the date to extend the period, it no longer accurately describes that as far as I can tell.

I agree that we don't have to resolve this in this PR.

test-exempt: doesn't affect code semantics

@Piinks Piinks added framework flutter/packages/flutter repository. See also f: labels. c: tech-debt Technical debt, code quality, testing, etc. autosubmit Merge PR when tree becomes green via auto submit App labels Dec 7, 2023
@auto-submit
auto-submit Bot merged commit da7e5e3 into flutter:master Dec 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App c: tech-debt Technical debt, code quality, testing, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants