aboutsummaryrefslogtreecommitdiff
path: root/doc/book/src/development
diff options
context:
space:
mode:
Diffstat (limited to 'doc/book/src/development')
-rw-r--r--doc/book/src/development/release_process.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/book/src/development/release_process.md b/doc/book/src/development/release_process.md
index 8591fd9f..e6f9e608 100644
--- a/doc/book/src/development/release_process.md
+++ b/doc/book/src/development/release_process.md
@@ -92,10 +92,21 @@ caching our development dependencies.
*Currently there is no automatic garbage collection of the cache: we should monitor its growth.
Hopefully, we can erase it totally without breaking any build, the next build will only be slower.*
+In practise, we concluded that we do not want to cache all the compilation dependencies.
+Instead, we want to cache the toolchain we use to build Garage each time we change it.
+So we removed from Drone any automatic update of the cache and instead handle them manually with:
+
+```
+source ~/.awsrc
+nix-shell --run 'refresh_toolchain'
+```
+
+Internally, it will run `nix-build` on `nix/toolchain.nix` and send the output plus its depedencies to the cache.
+
To erase the cache:
```
-mc rm --recursive --force 'garage/nix/*'
+mc rm --recursive --force 'garage/nix/'
```
### Publishing Garage