-
Notifications
You must be signed in to change notification settings - Fork 2.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
[flutter_migrate] Start command and executables #2735
Conversation
10e9ca6
to
44e9915
Compare
44e9915
to
c4364ab
Compare
@@ -55,11 +55,8 @@ bool _skipped(String localPath, FileSystem fileSystem, | |||
} | |||
} | |||
if (skippedPrefixes != null) { | |||
final Iterable<String> canonicalizedSkippedPrefixes = |
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.
Don't canonicalize, as it attempts to convert to absolute paths and this interferes with prefixing.
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.
would we be susceptible to differences in path separator or ASCII case?
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.
Let me try normalize(), maybe that's what we are looking for.
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 think a combination of path separator conversion and the normalize() function should be safe
argParser.addOption( | ||
'base-app-directory', | ||
help: | ||
'The directory containing the base reference app. This is used as the common ancestor in a 3 way merge. ' |
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.
should we only show this in verbose mode?
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.
or not at all? i don't imagine end users should be using this?
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.
The use case for this is for people migrating many projects at once. By providing the base and target app dirs, the tool will skip over the download of the sdk and flutter-creating the project steps, which can save a lot of time.
I think putting this under verbose makes sense.
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.
+1
valueHelp: 'path', | ||
); | ||
argParser.addOption( | ||
'target-app-directory', |
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.
ditto question
Approved % open comments. |
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
.cirrus.yml
Outdated
@@ -256,7 +256,7 @@ task: | |||
zone: us-central1-a | |||
namespace: default | |||
cpu: 4 | |||
memory: 12G | |||
memory: 14G |
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.
Flutter migrate tests fail on android gradle build due to OOM
e621224
to
37e8aff
Compare
The
start
command and executable framework to allow the commands to be called.The migrate tool is considered usable after this PR.
The tests include E2E tests that mocks a full migration process and exercises all of the sub commands.
This is dependent on #2734