From 546251678a5206b211c64e5093d2df986f1afc84 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 14 Jan 2022 10:21:14 +0100 Subject: [PATCH] fix(users/Profpatsch/blog): fix path check assoc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: sterni Autosubmit: Profpatsch Tested-by: BuildkiteCI --- users/Profpatsch/blog/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/Profpatsch/blog/default.nix b/users/Profpatsch/blog/default.nix index 6ac3c3eb5..d3c5c596b 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)