From e895f96f8a0fc91252aef54624edaff749bc9eb4 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Tue, 19 Aug 2025 00:02:03 +0200 Subject: [PATCH] Do not rely on `fish_indent` for version in Sphinx Depending on `fish_indent` when building docs is problematic because the docs might get built before `fish_indent` is available. Furthermore, a version of `fish_indent` which does not correspond to the current build might be used, which would result in incorrect version information. Use the `git_version_gen.sh` script instead to ensure up-to-date version information without depending on build output. --- doc_src/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/conf.py b/doc_src/conf.py index 3bd1f577a..8f5a684a1 100644 --- a/doc_src/conf.py +++ b/doc_src/conf.py @@ -72,7 +72,7 @@ elif "FISH_BUILD_VERSION" in os.environ: ret = os.environ["FISH_BUILD_VERSION"] else: ret = subprocess.check_output( - ("fish_indent", "--version"), stderr=subprocess.STDOUT + ("../build_tools/git_version_gen.sh", "--stdout"), stderr=subprocess.STDOUT ).decode("utf-8") # The full version, including alpha/beta/rc tags