Closed
Description
The directory search order for the config file is supposed to use $HOME...
jplocher@iMac-Pro ~ % echo $HOME
/Users/jplocher
note the "jplocher"...
Running the command from /Users/jplocher/:
jplocher@iMac-Pro ~ % arduino-cli --verbose config init
Error creating inventory dir: mkdir /Users/plocher: permission denied
ERRO[0000] Error creating inventory dir: mkdir /Users/plocher: permission denied
Error writing inventory file: open /Users/plocher/Library/Arduino15/inventory.yaml: no such file or directory
ERRO[0000] Error writing inventory file: open /Users/plocher/Library/Arduino15/inventory.yaml: no such file or directory
INFO[0000] Using config file: /Users/jplocher/Library/Arduino15/arduino-cli.yaml
INFO[0000] arduino-cli version 0.14.0
INFO[0000] Writing config file to: /Users/plocher/Library/Arduino15
Cannot create config file directory: mkdir /Users/plocher: permission denied
ERRO[0000] Cannot create config file directory: mkdir /Users/plocher: permission denied
Where is the "/Users/plocher" (without the 'j') coming from?
the "plocher" directory name is not in Apple Preferences/Users, not in /etc/passwd, not in $ENV...
Could it be stored somewhere else that came from a different / previous installation elsewhere where that
home directory name had been used?
jplocher@iMac-Pro ~ % arduino-cli --verbose version
Error creating inventory dir: mkdir /Users/plocher: permission denied
ERRO[0000] Error creating inventory dir: mkdir /Users/plocher: permission denied
Error writing inventory file: open /Users/plocher/Library/Arduino15/inventory.yaml: no such file or directory
ERRO[0000] Error writing inventory file: open /Users/plocher/Library/Arduino15/inventory.yaml: no such file or directory
INFO[0000] Using config file: /Users/jplocher/Library/Arduino15/arduino-cli.yaml
INFO[0000] arduino-cli version 0.14.0
arduino-cli alpha Version: 0.14.0 Commit: a86b21d99e2af9e0857da0ce4ab80baf1d3afb55 Date:
Metadata
Metadata
Assignees
Labels
No labels