In MacOS, when there is not a an explicit TUTOR_ROOT defined with an environment variable.
Any command with tutor says:
Error: Project root does not exist. Make sure to generate the initial configuration with `tutor config save --interactive` or `tutor local quickstart` prior to running other commands.
After doing:
tutor config save
Configuration saved to /Users/neithan/Library/Application Support/tutor/config.yml
Environment generated in /Users/neithan/Library/Application Support/tutor/env
Then, performing a:
tutor local quickstart
generates errors like:
ERROR: for mysql Cannot start service mysql: Mounts denied: approving /Users/neithan/Library/Application Support/tutor/data/mysql: file does not exist
ERROR: for mongodb Cannot start service mongodb: Mounts denied: approving /Users/neithan/Library/Application Support/tutor/data/mongodb: file does not exist
ERROR: for elasticsearch Cannot start service elasticsearch: Mounts denied: approving /Users/mendezr/Library/Application Support/tutor/data/elasticsearch: file does not exist
ERROR: for caddy Cannot start service caddy: Mounts denied: approving /Users/neithan/Library/Application Support/tutor/env/apps/caddy/Caddyfile: file does not exist
ERROR: for redis Cannot start service redis: Mounts denied: approving /Users/neithan/Library/Application Support/tutor/env/redis/redis.conf: file does not exist
I believe the error is produced by the blanks in the folder name, specifically “Application support”.
As a workaround we do this in MacOS, before doing anything else:
export TUTOR_ROOT=$HOME/.local/share/tutor
Could we this be solved also in tutor by default so we have a consistent experience among *nixes? (so we have in MacOS the same sane experience than in GNU/Linux.)