tayloryork / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.

Home Page:https://buckbuild.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buck

Buck is a build tool. To see what Buck can do for you, check out the documentation at http://buckbuild.com/.

Build Status Build status

Installation

First, clone the Buck repository:

git clone --depth 1 https://github.com/facebook/buck.git
cd buck

Since Buck is used to build Buck, the initial build process involves 2 phases:

1. Bootstrap Buck with ant
git clone --depth 1 https://github.com/facebook/buck.git
cd buck
ant
2. Use bootstrapped version of Buck to build Buck:
./bin/buck build --show-output buck
# output will contain something like
# //programs:buck buck-out/gen/programs/buck.pex
buck-out/gen/programs/buck.pex --help
Prebuilt buck binaries

Pre-built binaries of buck for any buck sha can be downloaded from https://jitpack.io/com/github/facebook/buck/<sha>/buck-<sha>.pex. The very first time a version of buck is requested, it is built via jitpack. As a result, it could take a few minutes for this initial binary to become available. Every subsequent request will just serve the built artifact directly. This functionality is available for any fork of buck as well, so you can fetch https://jitpack.io/com/github/<github-user-or-org>/buck/<sha>/buck-<sha>.pex

Feature Deprecation

Buck tries to move fast with respect to its internals. However, for user facing features (build rules, command line interface, etc), the Buck team tries to have a graceful deprecation process. Note that this generally applies only to documented functionality, or functionality that is less documented, but appears to be in wide use. That process is:

  • An issue is opened on Github suggesting what will be deprecated, and when it will be removed. For larger features that are deprecated, there may be a period when the default is the new setting, and the old behavior may only be used with a configuration change.
  • A change is submitted to Buck that puts the old behavior behind a configuration flag and sets the default to the old behavior. These flags can be found at https://buckbuild.com/concept/buckconfig.html#incompatible.
  • For larger features, a change eventually is put in place that sets the default to the new behavior. e.g. when Skylark becomes the default build file parser.
  • When the removal date is reached, a change is submitted to remove the feature. At this point, the configuration value will still parse, but will not be used by Buck internally.

License

Apache License 2.0

About

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.

https://buckbuild.com

License:Apache License 2.0


Languages

Language:Java 88.2%Language:Python 6.5%Language:JavaScript 3.0%Language:C 0.9%Language:Objective-C 0.5%Language:Shell 0.2%Language:CSS 0.2%Language:Thrift 0.2%Language:Kotlin 0.1%Language:C++ 0.1%Language:Swift 0.0%Language:Go 0.0%Language:Lex 0.0%Language:HTML 0.0%Language:Rust 0.0%Language:Scala 0.0%Language:OCaml 0.0%Language:Smalltalk 0.0%Language:Groovy 0.0%Language:Batchfile 0.0%Language:Dockerfile 0.0%Language:Makefile 0.0%Language:Assembly 0.0%Language:Prolog 0.0%Language:Roff 0.0%Language:D 0.0%Language:Haskell 0.0%Language:PowerShell 0.0%Language:IDL 0.0%Language:Yacc 0.0%Language:C# 0.0%Language:MATLAB 0.0%Language:Objective-C++ 0.0%