You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idea: config: [mounts] path should be set using ~ if GOPASS_HOMEDIR set. #2897
the config file has absolute path of stores like /.../.local/share/gopass/stores/root
using custom sync software leads to path inconsistencies, e.g. mac vs windows.
Steps To Reproduce
create a store under windows, copy folder to mac, set GOPASS_HOMEDIR try gopass ls
Expected behavior
the env var GOPASS_HOMEDIR should somehow be respected, but [mounts] path in config takes precedence.
Environment
macos 14.5 / brew
gopass 1.15.13 go1.22.2 darwin arm64
Additional context
if there is no value for [mounts] path in config, the GOPASS_HOMEDIR is respected and everything works, but first call to e.g. gopass ls recreates the path entry, which breaks crossplatform execution.
changed the title [-].config [mounts] path absolute path[/-][+].config [mounts] path absolute path takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/+]on Jun 2, 2024
changed the title [-].config [mounts] path absolute path takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/-][+]`.config [mounts] path` takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/+]on Jun 2, 2024
changed the title [-]`.config [mounts] path` takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/-][+]`config: [mounts] path` takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/+]on Jun 2, 2024
changed the title [-]`config: [mounts] path` takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/-][+]Idea: `config: [mounts] path` should be set using `~` if `GOPASS_HOMEDIR` set.[/+]on Jun 2, 2024
Activity
[-].config [mounts] path absolute path[/-][+].config [mounts] path absolute path takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/+][-].config [mounts] path absolute path takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/-][+]`.config [mounts] path` takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/+][-]`.config [mounts] path` takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/-][+]`config: [mounts] path` takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/+]maxwowpow commentedon Jun 2, 2024
if the
GOPASS_HOMEDIRis e.g./Users/user/gopassthen with double slash in
configit actually works.
however specifying
path = ~/.local...will create
/Users/user/gopass.local/....which seems not exactly the desired/expected behavior?
PS: it doesn't matter if the
GOPASS_HOMEDIRhas a trailing slash or not.[-]`config: [mounts] path` takes precedence over GOPASS_HOMEDIR and breaks cross platform execution[/-][+]Idea: `config: [mounts] path` should be set using `~` if `GOPASS_HOMEDIR` set.[/+]fix: store mount paths relative to home dir for cross-platform portab…
fix: store mount paths relative to home dir for cross-platform portab…
fix: store mount paths relative to home dir for cross-platform portab…
fix: store mount paths relative to home dir for cross-platform portab…
fix: store mount paths relative to home dir for cross-platform portab…