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

Open
opened 2019-05-02 08:53:03 +02:00 by ghorn · 1 comment
ghorn commented 2019-05-02 08:53:03 +02:00 (Migrated from github.com)

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?

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?
blackgnezdo commented 2022-01-04 22:52:57 +01:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#226
There is no content yet.