I first noticed this behavior with litd, but it also exists in Faraday. Faraday fails to start if you define the --macaroonpath argument.
Expected behavior
I would expect to be able to define any directory for macaroonpath and have that directory be used to store faraday's macaroons. Per the usage help text:
Path to write the macaroon for faraday's RPC and REST services if it doesn't exist. (default: /Users/joshfix/Library/ApplicationSupport/Faraday/mainnet/faraday.macaroon)
Actual behavior
When specifying the macaroon path, the service fails to start with the error:
Error starting faraday: error validating config: faradaydir overwrites macaroonpath, please only set one value
This error occurs even when not specifying a faradaydir value.
To reproduce
Start the service without providing the macaroonpath or faradaydir flags and observe that the service starts as expected:
Then attempt to start the service with the maracroonpath flag and not the faradaydir flag and observe the error:
./faraday --lnd.macaroonpath=/path/admin.macaroon --lnd.tlscertpath=/path/tls.cert --lnd.rpcserver=127.0.0.1:10009 --network=regtest --macaroonpath=/macpath
Error starting faraday: error validating config: faradaydir overwrites macaroonpath, please only set one value%
System information
Faraday is running standalone, however, I have observed similar behavior with litd. I am using Faraday v0.2.13 cloned from the repo and compiled locally.
I first noticed this behavior with litd, but it also exists in Faraday. Faraday fails to start if you define the
--macaroonpath
argument.Expected behavior
I would expect to be able to define any directory for macaroonpath and have that directory be used to store faraday's macaroons. Per the usage help text:
Actual behavior
When specifying the macaroon path, the service fails to start with the error:
This error occurs even when not specifying a
faradaydir
value.To reproduce
Start the service without providing the
macaroonpath
orfaradaydir
flags and observe that the service starts as expected:Then attempt to start the service with the
maracroonpath
flag and not thefaradaydir
flag and observe the error:System information
Faraday is running standalone, however, I have observed similar behavior with litd. I am using Faraday v0.2.13 cloned from the repo and compiled locally.