Skip to content
New issue

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

genrule outputs in bazel-bin instead of bazel-genfiles #10256

Closed
regisd opened this issue Nov 17, 2019 · 2 comments
Closed

genrule outputs in bazel-bin instead of bazel-genfiles #10256

regisd opened this issue Nov 17, 2019 · 2 comments

Comments

@regisd
Copy link
Contributor

regisd commented Nov 17, 2019

Description of the problem / feature request:

I think this is a regression in Bazel 1.1 compared to 0.27

The genrule (and custom rules which have output_to_genfiles = True) outputs to bazel-bin instead of bazel-genfiles.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

genrule(
    name = "hello",
    outs = ["hello.txt"],
    srcs = ["BUILD"],
    cmd = "echo $(RULEDIR) > $@",
    output_to_bindir=0,
)
bazel build //:hello

Starting local Bazel server and connecting to it...
INFO: Writing tracer profile to '/private/var/tmp/_bazel_regis/15bee190ff4e5724bdd67af04a5d1215/command.profile.gz'
INFO: Analyzed target //:hello (5 packages loaded, 8 targets configured).
INFO: Found 1 target...
Target //:hello up-to-date:
bazel-bin/hello.txt
INFO: Elapsed time: 5.655s, Critical Path: 0.11s
INFO: 1 process: 1 darwin-sandbox.
INFO: Build completed successfully, 2 total actions

What operating system are you running Bazel on?

Mac OS Mojave

What's the output of bazel info release?

release 1.1.0

Any other information, logs, or outputs that you want to share?

The bazel-genfiles symlink is not created at all.

@crorvick
Copy link

I think this was intentional, see #6761.

@regisd
Copy link
Contributor Author

regisd commented Nov 18, 2019

Right, it is indeed.

@regisd regisd closed this as completed Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants