Skip to content

Commit

Permalink
codemod TARGETS -> BUCK for fizz/record
Browse files Browse the repository at this point in the history
Summary:
Start codemodding this

Rough codemod:

```
$ find fbcode/fizz -name BUCK \
  | xargs -I{} sh -c 'if [[ -f $(dirname {})/TARGETS ]]; then hg rm {}; hg mv "$(dirname {})/TARGETS" {} && sed -i "s:^cpp_:fizz_cpp_:" {} && arc buildozer "new_load fbsource//xplat/fizz:defs.bzl fizz_cpp_library fizz_cpp_unittest" "$(dirname {}):__pkg__"; fi' \
  && arc f
```

Reviewed By: bigfootjon

Differential Revision: D67952833

fbshipit-source-id: a4d8c9d9a28a2080e3dc0969fb1899b1bba356ad
  • Loading branch information
mzlee authored and facebook-github-bot committed Jan 11, 2025
1 parent 9aea38f commit 23f3850
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 229 deletions.
6 changes: 5 additions & 1 deletion fizz/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ def fizz_cxx_library(

def fizz_cpp_binary(name, deps, **kwargs):
if get_fbsource_cell() == "fbcode":
cpp_binary(name = name, **kwargs)
cpp_binary(
name = name,
deps = deps,
**kwargs
)
else:
converted_deps = deps_map_utils.convert_all_to_fbsource_deps(
deps = deps,
Expand Down
88 changes: 0 additions & 88 deletions fizz/record/BUCK

This file was deleted.

140 changes: 0 additions & 140 deletions fizz/record/test/BUCK

This file was deleted.

0 comments on commit 23f3850

Please sign in to comment.