brittany icon indicating copy to clipboard operation
brittany copied to clipboard

Allow brittany to run when it can't write a global config file

Open ghorn opened this issue 5 years ago • 1 comments

My use case is running brittany in a sandbox, providing it exactly one .brittany.yaml config file, and not letting brittany do anything except write to stdout. There are no environment variables in this sandbox.

I have two problems. One is that brittany calls Directory.getAppUserDataDirectory (via readConfigsWithUserConfig and userConfigPath) which throws an exception when the environment variable HOME is not defined.

The second is that if I define the env var HOME then brittany tries to write a config file there, but it has no write permissions in this sandbox.

Is it possible to run brittany in a "pure" mode where it doesn't write a global config file?

ghorn avatar May 02 '19 06:05 ghorn

I would also love to have the option for brittany to not touch $HOME. Sadly, setting --config-file flag does not seem to prevent $HOME access.

blackgnezdo avatar Jan 04 '22 21:01 blackgnezdo