adam-singer / buck2-example

Simple buck2 example with remote execution settings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions

  • Create the executable files and send them to the remote (not cached):

buck2 run -v 5 --ui re --ui debugevents --ui dice --ui io --remote-only --event-log /tmp/buck2_events.log //:test_bin|grep test.sh

  • Kill buck2 and clean the local cache:

buck2 killall && buck2 clean

  • Run again (shows cached in CAS):

buck2 run -v 5 --ui re --ui debugevents --ui dice --ui io --remote-only --event-log /tmp/buck2_events.log //:test_bin|grep test.sh

  • Check the output file from the above command

ls -al the file loaded from CAS from the previous command showing it has executable bit

About

Simple buck2 example with remote execution settings


Languages

Language:Starlark 75.0%Language:Python 16.0%Language:Erlang 7.8%Language:Objective-C 0.4%Language:Go 0.4%Language:C++ 0.3%Language:Shell 0.1%Language:Java 0.0%Language:Makefile 0.0%Language:Batchfile 0.0%