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
As stated in the documentation, DENO_INSTALL_ROOT should default to $HOME/.deno/bin. However, in get_installer_root, it defaults to simply $HOME/.deno (
). This causes some weird behaviour when DENO_INSTALL_ROOT is set (for example, if it is set to $HOME/.deno/bin, packages will be installed to $HOME/.deno/bin/bin).
The text was updated successfully, but these errors were encountered:
well I kind of understand the issue and want to tackle.
By seeing how detailed the issue is thanks to mahtaran, I think the main issue is the appending of .bin later instead of appending it directly inside
I think we should remove let installation_dir = root.join("bin");
to
let installation_dir = root;
or replace root with installation_dir getting the output directly from if let .
Version: Deno 2.0.0
As stated in the documentation,
DENO_INSTALL_ROOT
should default to$HOME/.deno/bin
. However, inget_installer_root
, it defaults to simply$HOME/.deno
(deno/cli/tools/installer.rs
Lines 117 to 137 in 473e306
bin
is only added later (deno/cli/tools/installer.rs
Lines 212 to 218 in 473e306
deno/cli/tools/installer.rs
Lines 430 to 436 in 473e306
DENO_INSTALL_ROOT
is set (for example, if it is set to$HOME/.deno/bin
, packages will be installed to$HOME/.deno/bin/bin
).The text was updated successfully, but these errors were encountered: