-
Notifications
You must be signed in to change notification settings - Fork 38
Multirun cannot find bash runfiles #59
Comments
@dimitarvdimitrov Would be great to find out which commit actually broke it. Could you see if e31d79d works @laszlocsomor maybe you have an idea? |
@dimitarvdimitrov : That extra space should be there: https://github.com/bazelbuild/bazel/blob/9eb2ef0d1feea9a08161ea0f8c16e3ac0a07064d/tools/bash/runfiles/runfiles.bash#L53 Let me try to repro this error locally. |
I fail to repro this on Linux. Do you only see this on macOS? What's the output of:
? |
@laszlocsomor Managed to dig up the problem; it is because of my Thanks for the help and sorry for bothering you guys with it. Closing as it isn't an issue with bazel-tools |
Thanks for figuring that out! I wasn't aware |
@laszlocsomor I think the only safe/deterministic solution would be to completely shield grep from all environment variables using |
We're trying to use multirun to do multiple
container_push
's but can't run the multirun target even for simple binary targets.Building of the multirun target succeeds but when running it we get
/private/var/tmp/_bazel_dimitrovd/a9507c16f9ff4a741b31cd8f280aebd6/execroot/__main__/bazel-out/darwin-fastbuild/bin/run_all.bash: line 18: /private/var/tmp/_bazel_dimitrovd/a9507c16f9ff4a741b31cd8f280aebd6/external/bazel_tools/tools/bash/runfiles/runfiles.bash: No such file or directory
Although I can see the file exists
lrwxr-xr-x 1 dimitrovd wheel 121B 2 May 13:26 bazel-out/darwin-fastbuild/bin/run_all.bash.runfiles/bazel_tools/tools/bash/runfiles/runfiles.bash -> /private/var/tmp/_bazel_dimitrovd/a9507c16f9ff4a741b31cd8f280aebd6/external/bazel_tools/tools/bash/runfiles/runfiles.bash
bazel version
Issue is present when using 20cbdb1 of bazel-tools
A workaround was to downgrade to c7e0fd9
I'm posting below some of the relevant files
/BUILD:
/go/cmd/app/BUILD:
/WORKSPACE:
/bazel-out/darwin-fastbuild/bin/run_all.bash:
Let me know if you need anything else shared.
The text was updated successfully, but these errors were encountered: