Bazel filegroup directory structure. Treating the filegroup as a package, as above, while nice, is inconsistent. All four directories contain a bazel BUILD file and define filegroup rules that contain all files in the subdirectory (plus various other rules). However, I want to know whether any other more graceful method to avoid I have a parent directory foo, and child directories bar, baz, and qux. Discover a cleaner solution using the `cp` command Jan 13, 2016 · From the documentation, the above looks to be impossible without moving the files into their own directory, such that they can be labeled with package syntax. Jun 25, 2023 · How can I wrap all files of a filegroup in a directory and create a new target out of that? My use case is that I have a filegroup inside test-data/BUILD. Dec 29, 2021 · I have a general question about how to make filegroup into a declare_directory. It would work, and I already proved it. build Learn how to convert a Bazel `filegroup` into a `declare_directory` without the hassle of using tarballs. bazel but the test runner expects the files inside a directory called test-data. Mar 9, 2022 · In Buck, calling $ (location :my_filegroup) will expand to the directory containing the files in my filegroup, but in Bazel it expands to a list of all files in the filegroup separated by See full list on bazel. . qaxzhr zgitc gto ksvdw iqrjzott uiswym kohfri njwzah ttclu gihcn