mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -03:00
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.
This commit is contained in:
committed by
Johannes Altmanninger
parent
92f7063acb
commit
e895f96f8a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user