-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Apply fetch tag logic to upgrade command, build ios framework. #52250
Conversation
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.
LGTM
@@ -232,6 +232,7 @@ class BuildIOSFrameworkCommand extends BuildSubCommand { | |||
void produceFlutterPodspec(BuildMode mode, Directory modeDirectory, { bool force = false }) { | |||
final Status status = globals.logger.startProgress(' ├─Creating Flutter.podspec...', timeout: timeoutConfiguration.fastOperation); | |||
try { | |||
_flutterVersion.fetchTagsAndUpdate(); |
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.
Is there anywhere we request gitTagVersion where we wouldn't want to fetch the tags first?
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.
Yes. We get the flutter version for basically every command, which does this work. If we do this for every anayzer or build invocation it is a measurable performance hit.
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.
Why does build-ios-framework need this?
For that matter, why does anyone that isn't using a weird developer workflow on master need this?
|
There are a lot of ways to fail to pull down tags |
Presumably users on the normal upgrade flow would already have the right tags to know what version they're on? |
I think I'm misunderstanding the purpose of this change. Can we chat about the offline (online) for a few minutes? |
before trying to land this, I'll try to fix the tag logic so it only runs on branches other than dev/beta/stable |
Hi @dnfield what's the status of this PR? |
Now that the fetch tag logic has been changed to only run on master, we can probably close this. |
SGTM |
Applies logic from #52141 to
upgrade
andbuild ios-framework
. Both of these depend on tags being correct to run properly.This is expected to not regress benchmarks, since
analyze
,run
, and other build commands that do not depend on tags are not affected./cc @zanderso @jonahwilliams @jmagman