-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Problem
Running WATCHMAN_SOCK=/tmp/watchman.sock watchman
spawns a service with a service inside <STATEDIR>/<USER>
, when I would expect the environment variable to act like the command line flag --unix-listener-path=/tmp/watchman.sock
.
When supplying both
WATCHMAN_SOCK=/tmp/watchman.sock watchman --unix-listener-path=/tmp/foo.sock
I would expect the command line flag to take precedence.
Motivation
I'd like to define WATCHMAN_SOCK
once inside my environment variables to
- have
watchman
respect that value when spawning the service for me - have other services that query Watchman know which socket to call, instead of having to spawn
watchman get-sockname
on each invocation, or once and then caching the result somehow.
Metadata
Metadata
Assignees
Labels
No labels