We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SRCDIR
Hi.
According to the docs (https://buck2.build/docs/api/rules/#genrule) the value of that variable should be an absolute path:
${SRCDIR} The absolute path to a directory to which sources are copied prior to running the command.
${SRCDIR}
The absolute path to a directory to which sources are copied prior to running the command.
But when building the SRCDIR variable is just set to ./.:
./.
buck2 build frontend:start -v 4 Running action: root//frontend:start (prelude//platforms:default#524f8da68ea2a374) (genrule) (build), local executor: env -- "TMPDIR=/home/claudio/source/Mercury/the-culture-repo/buck-out/v2/tmp/root/524f8da68ea2a374/frontend/__start__/genrule" "ASAN_OPTIONS=detect_leaks=0,detect_odr_violation=0" "BUCK_SCRATCH_PATH=buck-out/v2/tmp/root/524f8da68ea2a374/frontend/__start__/genrule" "GEN_DIR=GEN_DIR_DEPRECATED" "OUT=../out" "SRCDIR=./." ...
The text was updated successfully, but these errors were encountered:
Having relative path there is intentional but documentation is misleading.
Sorry, something went wrong.
Opened D53473247 to update documentation.
571d29d
buck2/docs: update genrule docs
3543c41
Summary: Unlike buck1, buck2 evaluates these macros to relative paths. Fixes: facebook/buck2#560 Reviewed By: wendy728 Differential Revision: D53473247 fbshipit-source-id: 9d8c541ee213a516b033b607447cf68abe13e68a
8552336
No branches or pull requests
Hi.
According to the docs (https://buck2.build/docs/api/rules/#genrule) the value of that variable should be an absolute path:
But when building the
SRCDIR
variable is just set to./.
:The text was updated successfully, but these errors were encountered: