1.0.0
Release
#48
sgammon
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Welcome
The newly built GraalVM Rules for Bazel are nearing a stable release. Not much has changed on top of Andy's original rules, but I wanted to provide this discussion space where people can test and provide feedback if desired.
These rules now support an identical interface to the latest release of
rules_graal
as well as a new Native Image rule which leverages Bazel Toolchains to (A) provide GraalVM as a Java toolchain, and (B) resolve tools likenative-image
via a custom toolchain type.This brings the library to nearly full hermetic compiling of native images, which is great. Andy had already set it up to resolve the Bazel CC compiler (or somebody had) so the work here was pretty easy. If you use the "legacy rule," you will be invoking nearly identical code, so the "drop-in replacement" idea should be a guarantee now as of this next release. The only difference in this case is Windows support, BCR distribution, and support for GVM components. This use case supports Bazel 4-7 latest, modulo OS support.
See the full suite of new features here.
Upgrade path from
rules_graalvm
So long as you are on at least Bazel 4 (or Bazel 5 for Windows):
https://github.com/sgammon/rules_graalvm
at the latest releaseWORKSPACE
file with the newload
danceHermetic
native-image
There is a new hermeticity guide which explains the settings you may need on each host platform to enable hermetic builds.
Mapping generator
There is a new Python script which can keep our bindist datastructure up-to-date with much less maintainer friction.
This should ensure that new GraalVM releases are available nearly instantly. Later, we can hook this in to a GitHub Action to make sure releases stay in sync.
Contributors welcome
None of this is in opposition to Andy's amazing work, we're just using GraalVM a lot with Bazel an wanted to see some of this support. It felt rude to propose it all to a project he is running in his spare time. We've issued a pre-emptive collaborator invite to everyone tagged on this ticket, who had committed to
rules_graal
before, so that you can ship your own PRs here if you want. 😄cc / @andyscott, @johnynek, @snoble, @perezd, @Maeur1, @stevana, @ittaiz
Beta Was this translation helpful? Give feedback.
All reactions