From 0726169df83ea48f00cbf0a8e99373db04e2d72e Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 13 Dec 2024 18:20:29 +0000 Subject: [PATCH] feat(lib): rename tool_storage dir Tools are now stored in the `~/.pesde/bin/.tool_storage` directory, in order to prevent naming conflicts with other tool linkers. An old tool_storage directory gets migrated to the new path if present. --- toolchainlib/src/init.luau | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toolchainlib/src/init.luau b/toolchainlib/src/init.luau index 5b605de..a2b1abc 100644 --- a/toolchainlib/src/init.luau +++ b/toolchainlib/src/init.luau @@ -88,7 +88,12 @@ local function stripLeadingVersion(version: string): string end local LINK_INSTALL_DIR = (dirs.homeDir() or error("Couldn't get home dir :(")):join(".pesde"):join("bin") -local TOOL_STORAGE_DIR = LINK_INSTALL_DIR:join("tool_storage") +local TOOL_STORAGE_DIR = LINK_INSTALL_DIR:join(".tool_storage") + +local OLD_TOOL_STORAGE_DIR = LINK_INSTALL_DIR:join("tool_storage") +if pathfs.isFile(OLD_TOOL_STORAGE_DIR) then + pathfs.move(OLD_TOOL_STORAGE_DIR, TOOL_STORAGE_DIR) +end local bar = ProgressBar.new() :withStage("init", "Initializing")