[FATAL] Unexpected error reading .blazerc file '../.bazelrc'

While running ping sample application: https://docs.nvidia.com/isaac/isaac/doc/tutorials/ping.html#developing-codelets-in-c I am seeing the following error when running bazel build ping:

[FATAL] Unexpected error reading .blazerc file '../.bazelrc'

However, while running this sample application I have no issues: https://docs.nvidia.com/isaac/isaac/doc/getting_started.html#running-an-app

I have made sure that .bazelrc exists in Isaac folder

Here is the full output:

[INFO 15:46:42.363 src/main/cpp/option_processor.cc:395] Looking for the following rc files: /etc/bazel.bazelrc,/home/khansaadbinhasan/Desktop/Work/IIT_Delhi/Isaac/sdk/.bazelrc,/home/khansaadbinhasan/.bazelrc
[INFO 15:46:42.363 src/main/cpp/rc_file.cc:56] Parsing the RcFile /home/khansaadbinhasan/Desktop/Work/IIT_Delhi/Isaac/sdk/.bazelrc
[INFO 15:46:42.363 src/main/cpp/rc_file.cc:56] Parsing the RcFile …/.bazelrc
[FATAL 15:46:42.363 src/main/cpp/blaze.cc:1290] Unexpected error reading .blazerc file ‘…/.bazelrc’

This happens if you try building from any child directory of SDK/engine. If you invoke bazel only from SDK/engine itself, you should be okay.

If it poses too much trouble for you, you can fix the line in SDK/engine/.bazelrc from import ../.bazelrc to import %workspace%/../.bazelrc. We’re tracking a bug for the next release.