Buck


Intro

Buck is a build system developed and used by Facebook. It encourages the creation of small, reusable modules consisting of code and resources, and supports a variety of languages on many platforms.

 


Documentation

 


Common Problems

Forgetting to specifiy the ellipsis to match all build targets. You may get an error such as:

BUILD FAILED: The rule <your path> could not be found. Please check the spelling and whether it is one of the <#> targets in <your target path>

Source code to the above message: https://github.com/facebook/buck/blob/master/src/com/facebook/buck/parser/exceptions/NoSuchBuildTargetException.java#L62

Add an ellipsis to your target as detailed here: https://buck.build/concept/build_target.html

“A build target pattern that ends with an ellipsis (/...) matches all build targets in the build file in the directory that precedes the ellipsis and also all build targets in build files in subdirectories.”