-
-
Notifications
You must be signed in to change notification settings - Fork 1
Adds .fromGit and buildLocal #8
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
Conversation
@MichealReed Thanks! I have reviewed it.
Okay, adding a new example like
You can add a test and I can offer some help to figure it out 😄 |
If both the dart_cli and flutter examples are wired to use add, I do not see how the example could be used by adding add_from_git. Maybe it's better to demonstrate these from the same hook with a bool? |
just create a new example named |
I added a runBuildGit to the hook helpers and const exampleGit = false;
if (!exampleGit) {
await runBuild(input, output, sourceDir);
} else {
await runBuildGit(input, output, sourceDir);
} Can we use this approach instead? |
Sure, it's clearer, great jobs. |
Thanks! Tests added to builder/cmake_builder_git_test.dart too. Good to merge? |
I am facing a problem when testing. As you can see, some users like me are still using So maybe we should fetch first and checkout to Also, Process.runSync used in the constructor only logs stdout, but errors are not correctly processed, so I added runProcessSync() to do this, could you please finish the rest since it's late here, thanks~ Please let me know if you do not like |
Ah I think this is why we need to use fetch. Will mess around with this in a few hours. |
Ok, this should work we use -- mkdir test |
Great jobs! I have made some small changes and improved testing, now LGTM. I will merge it if it's also looks good to you. |
Looks good to me, thanks for the improvements! |
@MichealReed Thanks for your contributions! 😄 |
This adds a new factory fromGit and a flag that can be passed to both factories buildLocal. Had to manually init the directory instead of clone it so that we have control over the name of the directory the sources are pulled to.
Not sure how you want to split the example, added line comments to the add project's build hook for now.
I looked at adding a test but there are currently many failures with the defaults, these are mostly imported from the _c library?
closes #5