You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RUNFILES env var not always correctly set in case of shell wrapper #635
If bazel has created the runfiles of the nodejs_binary (i.e. one ran bazel build on that target) and then one runs the wrapper shell target via bazel run, then the ǹode_launcher.sh sets RUNFILES to the runfiles of the underlying binary rather then to the ones of the wrapper script. This itself already can cause bugs, because if I add new dependencies and then just bazel run the wrapper target those will be missing in the runfiles of the underlying target. But also the behaviour is inconsistent because if I never did bazel build/run of the underlying target, then node_launcher.sh finds the correct runfiles. Again might be easier to see when running the reproduction case.
changed the title [-]RUNFILES env var not correctly set in case of shell wrapper[/-][+]RUNFILES env var not always correctly set in case of shell wrapper[/+]on Mar 29, 2019
Just as an update, the workaround we are making use of now is setting TEST_SRCDIR=$(pwd)/.. in the shell wrapper and that does mitigate the issue but a proper fix would be good.
Activity
[-]RUNFILES env var not correctly set in case of shell wrapper[/-][+]RUNFILES env var not always correctly set in case of shell wrapper[/+]Globegitter commentedon May 21, 2019
Just as an update, the workaround we are making use of now is setting
TEST_SRCDIR=$(pwd)/..in the shell wrapper and that does mitigate the issue but a proper fix would be good.alexeagle commentedon Aug 29, 2019
Let's use this to track removing the shell wrappers altogether.
alexeagle commentedon Sep 6, 2019
fixed by #1078