summary refs log tree commit diff
path: root/release/checks
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-11-22 17:30:34 +0100
committerAlyssa Ross <hi@alyssa.is>2023-11-22 17:49:12 +0100
commitdb6a8b1dc29f48ae5b2c53d3d04cf0043ee50ea7 (patch)
tree9903bd15fb5b09b9362b256bef4bd5c5039104d9 /release/checks
parent17d3d2e69d4ec08a2b78c6e3f944aaa882cc11b3 (diff)
downloadspectrum-db6a8b1dc29f48ae5b2c53d3d04cf0043ee50ea7.tar
spectrum-db6a8b1dc29f48ae5b2c53d3d04cf0043ee50ea7.tar.gz
spectrum-db6a8b1dc29f48ae5b2c53d3d04cf0043ee50ea7.tar.bz2
spectrum-db6a8b1dc29f48ae5b2c53d3d04cf0043ee50ea7.tar.lz
spectrum-db6a8b1dc29f48ae5b2c53d3d04cf0043ee50ea7.tar.xz
spectrum-db6a8b1dc29f48ae5b2c53d3d04cf0043ee50ea7.tar.zst
spectrum-db6a8b1dc29f48ae5b2c53d3d04cf0043ee50ea7.zip
release/checks/doc-anchors.nix: avoid import
Documentation's src isn't special — it's the same src that we already
have access to.  We could only check in Documentation's sourceRoot,
but it's probably better not to anyway, since if AsciiDoc files did
end up elsewhere, we'd want them to have valid links too.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'release/checks')
-rw-r--r--release/checks/doc-anchors.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/release/checks/doc-anchors.nix b/release/checks/doc-anchors.nix
index 1fae7e3..a21f67c 100644
--- a/release/checks/doc-anchors.nix
+++ b/release/checks/doc-anchors.nix
@@ -1,12 +1,11 @@
 # SPDX-License-Identifier: MIT
 # SPDX-FileCopyrightText: 2023 Alyssa Ross <hi@alyssa.is>
 
-import ../../lib/eval-config.nix ({ config, ... }:
+import ../../lib/eval-config.nix ({ config, src, ... }:
 config.pkgs.callPackage ({ runCommand }:
 
 runCommand "spectrum-doc-anchors" {} ''
-  cd ${(import ../../Documentation { inherit config; }).src}
-  ! grep --color=always -r xref:http
+  ! grep --color=always -r xref:http ${src}
   touch $out
 ''
 ) { })