Questions tagged [buck]

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.

Buck is a super-fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.

It is used at Facebook to build the Facebook's main Android app, Messenger, and Instagram as well as internal infrastructure at Facebook. The Gerrit project also uses it.

112 questions
0
votes
1 answer

Buck installation with brew tries to hit an invalid url and throws 404

brew install buck throws curl: (22) The requested URL returned error: 404 Not Found Trying a mirror... ==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz* and finally gives an error Error: An exception…
gaMa
  • 47
  • 1
  • 4
0
votes
1 answer

How can I create a standalone PEX (PEX that includes its dependencies) file with BUCK?

Suppose I have the following project structure: ├── BUCK ├── main.py └── setup.py Where: main.py from markdown import markdown def joke(): return markdown(u'Wenn ist das Nunst\u00fcck git und Slotermeyer?' u'Ja! ...…
E. Fernandes
  • 3,889
  • 4
  • 30
  • 48
0
votes
0 answers

How to add dependency and build java code using buck

Can anyone please help me to build my code? I downloaded jedis (redis client) using maven but when I am trying to build my code using buck, it's giving an error that the Jedis package cannot be found. Attaching my buck file here: prebuilt_jar( …
0
votes
1 answer

vim-syntastic and files without extentions

I have to use buck for a project, and syntastic is returning lots of errors in buck's TARGETS files. Is there a way/documentation to declare that TARGETS file should not be checked ? I could set the default behavior to passive, but I would like to…
Vinz
  • 5,997
  • 1
  • 31
  • 52
0
votes
1 answer

Is it possible to create a pex with a JAR included as dependency?

I'm not much of a Python dev, so I'm sorry if there is not much sense in this question.. I'm currently working in a project that contains a py script that communicates with a server written in Java. A considerable part of the script is dedicated to…
Humble Student
  • 3,755
  • 4
  • 20
  • 35
0
votes
1 answer

installing onos fails in osx and ubuntu

I'm new in onos and I am having trouble installing it. I follow the instructions from building onos. However, if I install it in a ubuntu 16.04 machine, it fails and output error as BUILD FAILED: Couldn't get dependency…
陳昭文
  • 1
  • 1
0
votes
1 answer

How to run only a specific C++ gtest using BUCK

If I have tests like the following TEST(One, A) { ... } TEST(Two, B) { ... } How can I only run One.A using buck test? I would like to be able to do buck test something -- --gtest_filter=One.A But that does not seem to work. Neither does…
Curious
  • 20,870
  • 8
  • 61
  • 146
0
votes
1 answer

Accessing R.java using java test in BUCK

While migrating our build tool to Buck, we stumbled upon the following issues for the unit tests in Android: Our tests for the view model need to access R.java for asserting the right resources are referenced. We used the java_test rule but it…
Nazneen
  • 266
  • 3
  • 16
0
votes
1 answer

Buck/OkBuck: DexGuard integration not working

I have been using DexGuard successfully with Gradle in Android Studio without any issues. I recently tried my hands on OkBuck to speed up my build time and it really helped me. Although it is able to build debug and signed APKs for me, but when I…
Kamran Ahmed
  • 7,661
  • 4
  • 30
  • 55
0
votes
1 answer

Can I add enable colors when calling Google Test from Buck?

I find the output of buck test difficult to read. Google Test supports color output by adding the flag --gtest_color=yes when running the executable. Is there a way to pass this flag through Buck to Google Test?
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
0
votes
1 answer

invalid classes root with buck project on android studio

I'm trying to add several libraries, such as fresco to a buck project. Here is the code that adds fresco: maven/BUCK ### Package com.facebook.fresco:fresco remote_file( name = 'com_facebook_fresco__fresco-remote', out =…
Vinz243
  • 9,654
  • 10
  • 42
  • 86
0
votes
2 answers

Buck: transitive dependencies

Main project A (APK) depends on sub-project B (AAR). Both A and B depend on C (AAR). The problem is C included twice which cause: "values.xml:XXX: error: Attribute "YYY" has already been defined" How would I exclude transient dependency C from…
surlac
  • 2,961
  • 2
  • 22
  • 31
0
votes
1 answer

DefaultApplicationLike Won't Work With AndroidStudio

I am setting up Exopackage You need to extend your Application class from DefaultApplicationLike rather than android.app.Application. The problem is 2 fold: Extending from this class gives and error in the AndroidManfest.xml file where you need to…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
0
votes
1 answer

Buck Build Rules For Sub-Projects

Our project uses Cordova and a number of other sub-projects. I read through the Buck documentation and start guide a few times and have been experimenting with building simple projects. I am now attempting to migrate our project over to using Buck…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
0
votes
0 answers

Cannot find symbol R class in Buck build when refer to a R.string.appname in example of Buck build

Can anybody help me about buck build. When I build android project, and Activity have reference to R.java (getString(R.string.name)) then I cannot build. It always return cannot find symbol R class. Although when I build project which have Activity…
Boov
  • 1
  • 1