superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.36k stars 222 forks source link

`fly launch` from a template repo and clone submodules #3692

Closed kylemclaren closed 3 days ago

kylemclaren commented 5 days ago

Change Summary

What and Why:

Used in conjunction with the --from flag when running fly launch, a user can optionally specify a bool flag of --submodules to recursively clone a git repo's submodules.

How:

fly launch --submodules --from <REPO_URL>

Documentation

benwaffle commented 5 days ago

Can we just include `--recurse-submodules every time? Any downsides?

kylemclaren commented 4 days ago

Maybe? Can think of a scenario where a repo has lots of submodules, causing an IO issue? But that should be super rare so this is probably fine.