Skip to content

Conversation

CoderDake
Copy link
Contributor

@CoderDake CoderDake commented Jun 24, 2022

In order to improve interaction with the pubroot directories. The pubRoot directory interface is being changed to promote adding and removing directories. This will make it so that IDEs and Devtools can't overwrite each other's changes to the pub root directories if they call setPubRootDirectories at the same time.

Fixes #105730

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.

@flutter-dashboard flutter-dashboard bot added the framework flutter/packages/flutter repository. See also f: labels. label Jun 24, 2022
Copy link
Contributor Author

@CoderDake CoderDake left a comment

Choose a reason for hiding this comment

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

I'm posting this PR up as a draft so I can ask Jacob a couple of questions.

@jacob314 this diff makes the test changes look way more complicated than they are.

the 'addPubRootDirectories' and 'pubRootDirectories' have been added separately, only a couple of small changes have been made to other tests. I've just fixed up the other tests to use 'resetPubRootDirectories' so that their usage of 'setPubRootDirectories' doesn't break.

@CoderDake
Copy link
Contributor Author

Details about the follow up clean up have been added to #107186

@CoderDake CoderDake merged commit 76f056a into flutter:master Jul 7, 2022
@CoderDake CoderDake deleted the pubroot-improvements branch July 7, 2022 19:29
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 9, 2022
camsim99 pushed a commit to camsim99/flutter that referenced this pull request Aug 10, 2022
The pubRoot directory interface is being changed to promote adding and removing directories
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve setPubRootDirectories api
3 participants