[bug]: stacked cli hangs when not connected to network and analytics are enabled
Describe the bug
I was quite surprised to find that when my laptop is not connected to WiFi, I cannot use the CLI as it hangs and there is no help info for enable/disable analytics.
I had to look through the source code to see that it is doing this, I don't recall opting-in but I guess I must have on first run.
Can we at least have cli options to disable analytics? Perhaps stacked analytics --[no]-enable or something?
What operating system do you use?
macOS
Information about the installed tooling
stacked -v
1.13.1
Steps to reproduce the issue
...
Expected behavior
...
Screenshots
No response
Additional Context
No response
Hi.
Seems to me the issue isn't analytics (it seems to be temporarily disabled in code) but rather the default behaviour of build_runner being to run pub_get before running. Should be fixable by adding a config option for disabling this. I've created a PR adding an offline_mode to the stacked.json.
@pcj we actually did disable analytics, so it's quite interesting that this happens.
Will checkout PR from @Pebkac03 now.