-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Change project.buildDir in standalone subprojects
property
#91030
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
Change project.buildDir in standalone subprojects
property
#91030
Conversation
we need a test for this. would you be able to wire a plugin in the test that has the desired name? The code below has an example about how to create a plugin in a test: flutter/packages/flutter_tools/test/integration.shard/generated_plugin_registrant_test.dart Line 76 in 34059ee
|
Hello @blasten, I have reused the |
_createAndBuildPlugin('plugin_test'); | ||
}); | ||
|
||
test('plugin example android/app/build should not exists after flutter build', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blasten I have added a new test case here, should I move it to a standalone test file?
ah - that should work. does the test fail if you revert the changes to the template? |
@blasten It seems no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Please verify the test fail without the fix
@blasten The test fails without the fix.
|
a6b5f9f
to
4b5df4a
Compare
@blasten I finally move the test to a standalone file to fill more test cases, pls take a look again, thanks. |
The tests fail without this fix.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! LGTM
This appears to have broken the build. I'm going to try and revert and see if it fixes this. |
…lutter#91030)" This reverts commit 1b73a35 because it appears to have broken the build.
Actually, it doesn't appear to be the case: the revert PR failed too. Probably an infra issue. |
…lutter#91030)" This reverts commit 1b73a35.
If there is a plugin project whose name is before 'app' (in lexicographical order), the project ':app' buildDir is not set correctly.
This PR revert the changes made by #77942, I'm not sure it's the right way to fix this issue, but I add a test for this case to ensure it works as expected.
List which issues are fixed by this PR. You must list at least one issue.
Fixed #91018
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.