pre-commit: Use default plugins rank when checking the doc

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9130>
This commit is contained in:
Thibault Saunier 2025-05-30 09:40:54 +02:00 committed by GStreamer Marge Bot
parent 450f2343cf
commit 6c5ab780d5

View File

@ -125,6 +125,11 @@ def build_cache(builddir, subproject, targets, subdir):
os.path.join(builddir, f'subprojects/{subproject}/docs/gst_plugins_cache.json'),
] + targets
env = os.environ.copy()
try:
del env['GST_PLUGIN_FEATURE_RANK'] # Ensure default ranks are applied
except KeyError:
pass
subprocess.run(cmd)
class StashManager: