Commit Graph

2 Commits

Author SHA1 Message Date
David Tolnay
8f50570e80
Hide buck2 submodule from bazel
Otherwise `bazel build ...` gets tripped up.

    ERROR: error loading package 'tools/buck/buck2/examples/no_prelude/go/binary-toolchain': cannot load '//:rules.bzl': no such file
    ERROR: error loading package 'tools/buck/buck2/examples/no_prelude/rust/rustc': cannot load '//:rules.bzl': no such file
    ERROR: error loading package 'tools/buck/buck2/examples/prelude/cpp/library': Unable to find package for @prelude//rules.bzl:rules.bzl: The repository '@prelude' could not be resolved: Repository '@prelude' is not defined.
    ERROR: error loading package 'tools/buck/buck2/examples/prelude/python/library': Unable to find package for @prelude//rules.bzl:rules.bzl: The repository '@prelude' could not be resolved: Repository '@prelude' is not defined.
    INFO: Elapsed time: 0.167s
    INFO: 0 processes.
    FAILED: Build did NOT complete successfully (0 packages loaded)
2022-12-02 23:14:08 -08:00
David Tolnay
e948983427
Ignore BUILD files under target directory
After doing a `cargo publish` or `cargo package` we were getting a BUILD
file at target/package/cxx-0.2.11/BUILD which was subsequently picked up
by `bazel build ...`.
2020-04-25 19:50:45 -07:00