Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: correct references to location of global store #9832

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/how-to-build-like-nix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions doc/nix-local-build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down