问题
In my project, I want to use some commands which are installed via homebrew on Mac. Unfortunately, bazel doesn't include my modified classpath when I run commands via it. How can I enable such PATH with minimum amount of command line parameters and configurations?
回答1:
There's an --action_env flag which allows to specify environment variables. See more here: https://bazel.build/designs/2016/06/21/environment.html
来源:https://stackoverflow.com/questions/48200987/how-to-include-standard-path-in-bazel