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

$(location) and $(locations) do not properly quote file paths #5190

Closed
ensonic opened this issue May 11, 2018 · 1 comment
Closed

$(location) and $(locations) do not properly quote file paths #5190

ensonic opened this issue May 11, 2018 · 1 comment
Assignees

Comments

@ensonic
Copy link
Contributor

ensonic commented May 11, 2018

Follow up on #3475

Description of the problem / feature request:

A genrul using $(locations) fails with 'unbounded shell variable'.

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

filegroup(
  name = "files",
  srcs = glob(["dir/*"]),    # put files with special chars here, e.g. $data.json, @foo.bar, ...
)

genrule(
  name = "example",
  srcs = [":files"],
  outs = ["foo"],
  cmd = "echo FILES: $(locations //:files) | tee $@",
)

What operating system are you running Bazel on?

linux

What's the output of bazel info release?

release 0.13.0

Have you found anything relevant by searching the web?

#3475

@aehlig
Copy link
Contributor

aehlig commented May 16, 2018 via email

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

4 participants