From ff2967e4c8e0b4e302cc94024a825dab629ed5a0 Mon Sep 17 00:00:00 2001 From: Adam Gundry Date: Thu, 21 Mar 2024 15:27:08 +0000 Subject: [PATCH] docs: correct references to location of global store --- doc/how-to-build-like-nix.rst | 2 +- doc/nix-local-build.rst | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/how-to-build-like-nix.rst b/doc/how-to-build-like-nix.rst index 0714b4b02f1..9377cc94327 100644 --- a/doc/how-to-build-like-nix.rst +++ b/doc/how-to-build-like-nix.rst @@ -28,7 +28,7 @@ Nix-style local builds combine the best of non-sandboxed and sandboxed Cabal: will rebuild all its dependencies with profiling automatically. 2. Like non-sandboxed Cabal today, builds of external packages are - cached in ``~/.cabal/store``, so that a package can be built once, + cached in a global store, so that a package can be built once, and then reused anywhere else it is also used. No need to continually rebuild dependencies whenever you make a new sandbox: dependencies which can be shared, are shared. diff --git a/doc/nix-local-build.rst b/doc/nix-local-build.rst index 7a47dacc923..6144cea85ba 100644 --- a/doc/nix-local-build.rst +++ b/doc/nix-local-build.rst @@ -170,8 +170,9 @@ identify the result of a build; if we compute this identifier and we find that we already have this ID built, we can just use the already built version. -The global package store is ``~/.cabal/store`` (configurable via -global `store-dir` option); if you need to clear your store for +Use ``cabal path --store-dir`` to show where your global package store is located. +This is configurable via the global ``store-dir`` option. +If you need to clear your store for whatever reason (e.g., to reclaim disk space or because the global store is corrupted), deleting this directory is safe (``build`` will just rebuild everything it needs on its next invocation).