manifoldco / torus-cli

A secure, shared workspace for secrets
https://www.torus.sh
BSD 3-Clause "New" or "Revised" License
613 stars 32 forks source link

Fix prefs set when not on darwin #379

Closed ianlivingstone closed 6 years ago

ianlivingstone commented 6 years ago

If a user attempted to set a preference on a non-darwin operating system it would fail silently. This is because we were ignoring errors from user.Current() which requires c-go to get the current user.

Since we're not building Torus with c-go (on purpose), we'd get an error back when we called that method on linux or windows. I've worked around this by writing a shim and no longer using user.Current().

Closes #375