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
utils.condensePath is used for binaries and managers but not languages, databases, ides, etc.
Is there a reason for that? It seems to me that we'd want to replace process.env.HOME with ~ for every case. If so, I think it'd make sense to create a new util that does uses utils.which and utils.condensePath.
Happy to make a PR if this is something that sounds reasonable
The text was updated successfully, but these errors were encountered:
ryhinchey
changed the title
utils.condensePath isn't used everywhere it should be
utils.condensePath isn't used everywhere utils.which is
Feb 26, 2020
I think you might be right. The original intention was to obscure the user directory for paths that frequently contained them, but due to the wonderously diverse nature of environments, anything could be anywhere.
If you're willing go ahead. I'd approve this change.
kou029w
added a commit
to kou029w/envinfo
that referenced
this issue
May 28, 2024
fixedtabrindle#151
Removed `utils.condensePath` and updated all references to use the enhanced `utils.which`, which now replaces the home directory with ~. Updated and added tests to ensure functionality.
utils.condensePath
is used for binaries and managers but not languages, databases, ides, etc.Is there a reason for that? It seems to me that we'd want to replace
process.env.HOME
with~
for every case. If so, I think it'd make sense to create a new util that does usesutils.which
andutils.condensePath
.Happy to make a PR if this is something that sounds reasonable
The text was updated successfully, but these errors were encountered: