Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel build system #11337

Open
wants to merge 174 commits into
base: develop
Choose a base branch
from
Open

Bazel build system #11337

wants to merge 174 commits into from

Conversation

Frizi
Copy link
Contributor

@Frizi Frizi commented Oct 16, 2024

Pull Request Description

Created a bazel-based build system, implemented a whole GUI build target within it.

Important Notes

  • Running pnpm install will install all necessary dependencies, including Bazel itself.
  • The .env file with safe defaults is now committed to the repository, at app/gui. The old version at app/ is no longer used.
  • Because the .env file is committed, it does not contain anything sensitive, and developers must create .env.local file at app/gui and overwrite the variables as needed. Ask @Frizi or @vitvakatu for a template file.
  • You might need a few additional things on Windows:
  1. Developer Mode must be enabled to support creating filesystem symlinks. E.g., using this instruction: https://pureinfotech.com/enable-developer-mode-windows-11/
  2. You must create either .bazelrc.local at repository root, or %USERPROFILE%\.bazelrc (consult https://bazel.build/run/bazelrc for more possible locations), containing the following:
# Use different drive letter if needed, but the path must be SHORT
startup --output_base=C:/_bzl
common --disk_cache=C:/_bzl-disk
common --repository_cache=C:/_bzl-repo
  1. You need to have bash.exe available in PATH, so either:
  • install MSYS2 (https://www.msys2.org/)
  • or use bash executable provided with Git by adding the following to your PATH variable: C:\Program Files\Git\bin, if you have it installed.
  • or configure Git installation selecting the third option:
    Git installation settings

Frizi and others added 30 commits April 19, 2024 14:39
Using latest JDK (after proper GraalVM integration) broke compilation of
Scala projects due to a problem with SecurityManager in `scala_rules`.
Workaround it by having custom toolchain.

Added example BUILD for mixed Scala/Java project with a small number of
dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Clean build required CI runners will be cleaned before and after this PR is built. CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants