From f20bc50c1d53e80b980e14e8cdbb6c2f135de5cd Mon Sep 17 00:00:00 2001 From: Sam Gammon Date: Thu, 19 Sep 2024 11:48:49 -0700 Subject: [PATCH] fix: fmt Signed-off-by: Sam Gammon --- .github/DCO.md | 1 - .github/PROJECT.md | 1 - docs/maven-artifacts.md | 11 ++++------- internal/native_image/classic.bzl | 2 +- internal/native_image/rules.bzl | 2 +- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/DCO.md b/.github/DCO.md index 69dab0b3..c3782f6a 100644 --- a/.github/DCO.md +++ b/.github/DCO.md @@ -6,7 +6,6 @@ Copyright (C) 2004, 2006 The Linux Foundation and its contributors. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - Developer's Certificate of Origin 1.1 By making a contribution to this project, I certify that: diff --git a/.github/PROJECT.md b/.github/PROJECT.md index 1aaa1bae..8a8f95ea 100644 --- a/.github/PROJECT.md +++ b/.github/PROJECT.md @@ -1,4 +1,3 @@ - ## GraalVM Rules for Bazel > Project Structure & Governance diff --git a/docs/maven-artifacts.md b/docs/maven-artifacts.md index 8c9f2951..8b4bfdb1 100644 --- a/docs/maven-artifacts.md +++ b/docs/maven-artifacts.md @@ -1,14 +1,13 @@ - ## Using GraalVM artifacts from Maven Several important GraalVM artifacts are distributed via Maven, including the GraalVM SDK, Truffle API, and others. These rules have some macros which make use of this libraries a bit easier, particularly via [`rules_jvm_external`][1]. - ### Installing a Maven artifact **From a `WORKSPACE.bazel`:** + ```python # ... setup code for `rules_jvm_external` ... # ... setup code for `rules_graalvm` ... @@ -17,6 +16,7 @@ load("@rules_graalvm//graalvm/artifacts:maven.bzl", "graalvm") load("@rules_jvm_external//:defs.bzl", "maven_install") load("@rules_jvm_external//:specs.bzl", "maven") ``` + ```python maven_install( artifacts = [ @@ -32,6 +32,7 @@ maven_install( > **What this does:** The `graalvm.artifact` call will add the `graalvm.catalog.SDK` artifact via the `maven` struct provided by `rules_jvm_external`. This is equivalent to the normal arguments expected by `maven_install`: + ```python maven_install( artifacts = [ @@ -40,7 +41,6 @@ maven_install( ) ``` - ### Using a Maven artifact In addition to the macro made available for use in the `WORKSPACE` file, there is also a macro which makes it easy to use these Maven artifacts in your `java_library(deps = *)`: @@ -62,20 +62,17 @@ java_library( ) ``` - ## Available Maven dependencies - | Artifact | Catalog symbol | Maven coordinate | Notes | | ---------------- | --------------------- | -------------------------------------- | --------------------------------------------- | | [GraalVM SDK][2] | `catalog.SDK` | [`org.graalvm.sdk:graal-sdk`][3] | Main GraalVM SDK package | | [Truffle API][4] | `catalog.TRUFFLE` | [`org.graalvm.truffle:truffle-api`][5] | API package for Truffle language implementors | | [Truffle NFI][6] | `catalog.TRUFFLE.NFI` | [`org.graalvm.truffle:truffle-nfi`][7] | Native Function Interface package or Truffle | - [1]: https://github.com/bazelbuild/rules_jvm_external [2]: https://www.graalvm.org/sdk/javadoc/ -[3]: https://search.maven.org/artifact/org.graalvm.sdk/graal-sdk +[3]: https://search.maven.org/artifact/org.graalvm.sdk/graal-sdk [4]: https://www.graalvm.org/truffle/javadoc/com/oracle/truffle/api/package-summary.html [5]: https://search.maven.org/artifact/org.graalvm.truffle/truffle-api [6]: https://github.com/oracle/graal/blob/master/truffle/docs/NFI.md diff --git a/internal/native_image/classic.bzl b/internal/native_image/classic.bzl index 84c15c69..6a42a473 100644 --- a/internal/native_image/classic.bzl +++ b/internal/native_image/classic.bzl @@ -59,7 +59,7 @@ def _graal_binary_classic_implementation(ctx): ) if ctx.files.data: - direct_inputs.extend(ctx.files.data) + direct_inputs.extend(ctx.files.data) inputs = depset( direct_inputs, diff --git a/internal/native_image/rules.bzl b/internal/native_image/rules.bzl index cb9afcfe..c9cf32ca 100644 --- a/internal/native_image/rules.bzl +++ b/internal/native_image/rules.bzl @@ -101,7 +101,7 @@ def _graal_binary_implementation(ctx): ) if ctx.files.data: - direct_inputs.extend(ctx.files.data) + direct_inputs.extend(ctx.files.data) # assemble final inputs inputs = depset(