Bazel Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:


==<tt>build</tt>==
==<tt>build</tt>==
<syntaxhighlight lang='bash'>
bazel build //...
</syntaxhighlight>
==<tt>clean</tt>==
==<tt>clean</tt>==
==<tt>fetch</tt>==
==<tt>fetch</tt>==

Revision as of 17:47, 31 October 2023

External

Internal

Commands

build

bazel build //...

clean

fetch

info

bazel info

run

Runs the specified target. It inherits all options form build.

bazel run --script_path=/Users/ovidiu/bin/something //a/something

Runs the specified target.

--script-path

Write a shell script that invokes the target. In this way, the target is not run from bazel - the bazel lock is released and the executable is connected to the terminal's stdin.

version

Options