bevry/dorothy

Bug: installs on fresh macOS (no homebrew) fail

selfagency opened this issue · 11 comments

❯ bash -ilc "$(curl -fsSL https://dorothy.bevry.me/install)"
bash: fs-realpath: command not found

will look into it now

should be fixed, post back if it is not — thanks for the report! it is hard to test on a completely fresh macos environment

actually wait a moment

ok should be properly fixed now

actually, perhaps best to come back tomorrow - I've found a way to automate testing on fresh macos environment, and the testing is failing.

Sorry for the inconvenience.

Okay, install on fresh macos is now working again, and testing has been implemented to guarantee it working. Thank you so much for reporting this.

Just fixed another bug affecting fresh macos, and the tests for it are now passing and comprehensive.

Unfortunately...

kingpin on  main [!] is 󰏗 v0.1.0 via  v20.6.0 took 2s 
❯ bash -ilc "$(curl -fsSL https://dorothy.bevry.me/install)"                                                                                                                                                       10:22:30 PM
bash: #!/usr/bin/env: No such file or directory

kingpin on  main [!] is 󰏗 v0.1.0 via  v20.6.0 
❯                                                                                                                                                                                                        ❌127     10:22:31 PM

kingpin on  main [!] is 󰏗 v0.1.0 via  v20.6.0 
❯ curl -fsSL https://dorothy.bevry.me/install | bash                                                                                                                                                               10:22:40 PM
┌  Updating the Dorothy installation at /Users/daniel/.local/share/dorothy  ┐
Menu timed out [60].
failure
...Dorothy was unable to be updated, you will have to figure this out now.

Which version of macos is this, and which architecture? I'll see if I can reproduce manually via a virtual machine.

As you haven't had a successful install of Dorothy, try clear the failed installation by removing it:

rm -rf '/Users/daniel/.local/share/dorothy'

then trying again.

If you want to debug, you can use the -x flag with bash, so:

bash -xic "$(curl -fsSL https://dorothy.bevry.me/install)"

Also, perhaps try your alternative with the -i flag (in case piping to bash disables interaction by default), and the -x flag for debugging.

curl -fsSL https://dorothy.bevry.me/install | bash -xi

Haven't had time to test manually, however I've pushed new updates and new install instructions that might fix this.

The only remaining todo related to improving the install flow is: #164

Okay, I've pushed up all the refactoring I can think of that would impact this. I've also completed all code changes related to stability of Dorothy.

As such, please try removing the broken installation:

rm -rf '/Users/daniel/.local/share/dorothy'

Then going through the setup again:
https://github.com/bevry/dorothy#setup

Please let me know if there is still a problem, and I'll attend to it. Thanks for your patience!