Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sphinx_docs creates an implicit build_test target #2645

Closed
@255

Description

@255

sphinx_docs creates an implicit build_test target. (Note that this is not currently documented.)

https://github.com/bazelbuild/rules_python/blob/f2941df7562c4183c37d6ceeae23e7d390738d58/sphinxdocs/private/sphinx.bzl#L196-L197

This means that commands like bazel test //... always include sphinx_docs targets. For developers (like me) that repeatedly run tests, this is pretty costly, especially given the lack of incremental builds.

Could the implicit _build_test target be removed from sphinx_docs?

I would prefer if sphinx_docs left the policy of whether to build_test each target to users. Since projects don't typically have many sphinx_docs targets, manually adding build_tests as needed should not be burdensome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions