Skip to content

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Jun 22, 2021

On macOS only, when unzipping, first unzip to a temp directory, then rsync with the --delete flag so stale files that aren't in the target directory are deleted, and files continue to only be updated as needed. This adds an extra I/O copy step to unzipping, but will make sure deleted archive files are actually deleted. This applies for downloading cached artifacts as well as unzipping prebuilt macOS and iOS app bundles.

Confirmed that the stale xcframework architecture triple directories are removed on this PR (more details in #85062)

Fixes #85062

There was a previous attempt to do this at #74818 but that only seems to delete flutter/bin/cache/artifacts/engine/ios/artifacts (which doesn't exist), not flutter/bin/cache/artifacts/engine/ios/*

@jmagman jmagman added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Jun 22, 2021
@jmagman jmagman self-assigned this Jun 22, 2021
@google-cla google-cla bot added the cla: yes label Jun 22, 2021
@jmagman jmagman requested a review from jonahwilliams June 22, 2021 22:41
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

We already require rsync and unzip on macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS engine artifacts Flutter.xcframework contains old architecture triples directories

4 participants