build: Use --keep-going in ./mach doc (#31119)

The documentation build for `gstreamer-gl-x11` depends on nightly Rust
for some reason, which breaks our doc build. Use `--keep-going` to
prevent breakage in dependencies from breaking our doc build. This
unfortunately hides issues in our own documentation build.

NB: It isn't possible to exclude dependencies with `--exclude` unless
you are using `--workspace`. We would probably like to do that, but we
have crates with the same name, preventing using `--workspace`.
This commit is contained in:
Martin Robinson 2024-01-18 17:12:04 +01:00 committed by GitHub
parent 8e5f28839c
commit c641c589e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,6 +266,11 @@ class PostBuildCommands(CommandBase):
else:
copy2(full_name, destination)
# Documentation build errors shouldn't cause the entire build to fail. This
# prevents issues with dependencies from breaking our documentation build,
# with the downside that it hides documentation issues.
params.insert(0, "--keep-going")
env = self.build_env()
returncode = self.run_cargo_build_like_command("doc", params, env=env, **kwargs)
if returncode: