Bazel

提供: ArchWiki
2022年5月11日 (水) 01:19時点におけるKgx (トーク | 投稿記録)による版 (英語版から転載)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

Bazel is an open-source tool that allows for the automated building and testing of software.

Bazel Arch Linux

Install the bazel package.

There are AUR packages for Bazel on Arch Linux:

  • bazel-gitAUR: Build Bazel from the official Git repository.

JDK 16 issues

Running Bazel with JDK 16 as the default system Java might produce the following error:

FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.NoClassDefFoundError: Could not initialize class com.google.devtools.build.lib.unsafe.StringUnsafe

This can be worked around by setting a different Java to run with, for instance, jdk11-openjdk. To do this, use a ~/.bazelrc like so:

startup --server_javabase=/usr/lib/jvm/java-11-openjdk

See also