Skip to content

Conversation

@johnbartholomew
Copy link
Collaborator

If you have build using CMake following the build instructions in the README, and then you subsequently try to build everything (//...) with bazel without first cleaning the CMake output, then the bazel build fails. This is because the CMake build (when following the README) pulls down googletest (and maybe other things?) into the build/ directory, which means there are random BUILD files under build/, and bazel will find these and try to use them as part of the module.

So ignore a 'build' directory.

Also ignore the examples/bazel directory, since that is explicitly an example of how to use jsonnet from a separate bazel module.

If you have build using CMake following the build instructions in the
README, and then you subsequently try to build everything (`//...`) with
bazel without first cleaning the CMake output, then the bazel build
fails. This is because the CMake build (when following the README)
pulls down googletest (and maybe other things?) into the build/
directory, which means there are random BUILD files under build/,
and bazel will find these and try to use them as part of the module.

So ignore a 'build' directory.
@johnbartholomew johnbartholomew merged commit 2ab26af into google:master Jan 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant