about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2022-01-14T09·21+0100
committerProfpatsch <mail@profpatsch.de>2022-01-16T13·51+0000
commit546251678a5206b211c64e5093d2df986f1afc84 (patch)
treea1c61523ff2c1caf8a335b1eb6acbb1527a4f7a7
parenta6304a1e339527381f98d35aec595b1af977dbf6 (diff)
fix(users/Profpatsch/blog): fix path check assoc r/3600
It would left-associate in some nix version, this way it’s clear that
you want to join a path segment.

Change-Id: I82a00de720187d1faf908c842e396301ea435a97
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4886
Reviewed-by: Profpatsch <mail@profpatsch.de>
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
-rw-r--r--users/Profpatsch/blog/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/Profpatsch/blog/default.nix b/users/Profpatsch/blog/default.nix
index 6ac3c3eb5104..d3c5c596b444 100644
--- a/users/Profpatsch/blog/default.nix
+++ b/users/Profpatsch/blog/default.nix
@@ -127,8 +127,8 @@ let
   }:
     assert
       (lib.assertMsg
-        (builtins.pathExists (depot.path + "/" + relativePath))
-        "depotCgitLink: path /${relativePath} does not exist in depot");
+        (builtins.pathExists (depot.path.origSrc + "/${relativePath}"))
+        "depotCgitLink: path /${relativePath} does not exist in depot, and depot.path was ${toString depot.path}");
       "https://code.tvl.fyi/tree/${relativePath}";
 
   # look up a route by path ($1)