facebook / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
https://buck.build
Apache License 2.0
8.56k stars 1.16k forks source link

fix BUCK_CLASSPATH limit on linux #2692

Open adolfojunior opened 2 years ago

adolfojunior commented 2 years ago

Summary: When running buck test ... the RemoteExecution tests fails with "Argument list too long".

Reason: The concatanation of paths used as BUCK_CLASSPATH is crossing the limit emposed by linux for the env variable values. (https://github.com/torvalds/linux/blob/master/include/uapi/linux/limits.h#L8)

How to reproduce the problem on a devserver:

test("BUCK_CLASSPATH", 131_056) // ok: 0

test("BUCK_CLASSPATH", 131_057) // fail: 7 - Argument list too long



Reviewed By: bobyangyf
facebook-github-bot commented 2 years ago

This pull request was exported from Phabricator. Differential Revision: D35240414

facebook-github-bot commented 2 years ago

This pull request was exported from Phabricator. Differential Revision: D35240414