Skip to content

Commit e54a92a

Browse files
adamgundryerikd
authored andcommitted
docs: correct references to location of global store
1 parent b9516d3 commit e54a92a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/how-to-build-like-nix.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Nix-style local builds combine the best of non-sandboxed and sandboxed Cabal:
2828
will rebuild all its dependencies with profiling automatically.
2929

3030
2. Like non-sandboxed Cabal today, builds of external packages are
31-
cached in ``~/.cabal/store``, so that a package can be built once,
31+
cached in a global store, so that a package can be built once,
3232
and then reused anywhere else it is also used. No need to continually
3333
rebuild dependencies whenever you make a new sandbox: dependencies
3434
which can be shared, are shared.

doc/nix-local-build.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ identify the result of a build; if we compute this identifier and we
170170
find that we already have this ID built, we can just use the already
171171
built version.
172172

173-
The global package store is ``~/.cabal/store`` (configurable via
174-
global `store-dir` option); if you need to clear your store for
173+
Use ``cabal path --store-dir`` to show where your global package store is located.
174+
This is configurable via the global ``store-dir`` option.
175+
If you need to clear your store for
175176
whatever reason (e.g., to reclaim disk space or because the global
176177
store is corrupted), deleting this directory is safe (``build``
177178
will just rebuild everything it needs on its next invocation).

0 commit comments

Comments
 (0)