Binary images are fallback images that require java
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- build-system, devops
調査の方向性
tools/cli-application/build.gradle の23行目から始め、その nativeImage オプションを、リンクされた最後の Linux ビルドログにある未サポート機能の警告と比較します。複数のオプションが Gradle の nativeImage ステップにどのように渡されるかを特定し、その後、リリースされた native image が Java なしのドキュメント CI 環境で実行されることを検証します。
索引モデルが issue の本文から書いたものです。
説明
When trying to use the native image on the documenation CI (vercel) which does not java available by default we (docs / @davifantasia ) found that the native images in the GitHub releases are not actually fully native but graalvm fallback images that require a JVM.
It's my fault effectively, I should have read the logs more carefully and not rely on passing allow-incomplete-classpath when there can be more issues than that. ( https://github.com/commercetools/rmf-codegen/blob/master/tools/cli-application/build.gradle#L23 )
Here's the log line in the last linux build: https://github.com/commercetools/rmf-codegen/runs/1463962319?check_suite_focus=true#step:4:175
2020-11-27T13:41:20.2564243Z Warning: Aborting stand-alone image build. Unsupported features in 4 methods
2020-11-27T13:41:20.2565015Z Detailed message:
2020-11-27T13:41:20.2568041Z Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.MethodHandle.invokeBasic()
2020-11-27T13:41:20.2572179Z To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed.
To pass report-unsupported-elements-at-runtime to the graalvm native image builder we'd have to learn how to pass mulitple options in the gradly nativeImage step.
- 主要言語
- Kotlin
- スター
- 16
- フォーク
- 7
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
commercetools/rmf-codegen のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
commercetools/rmf-codegen#333 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
commercetools/rmf-codegen#323 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
commercetools/rmf-codegen#313 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
commercetools/rmf-codegen#306 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 40/100
commercetools/rmf-codegen#295 ·
commercetools/rmf-codegen の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
AAswordman/Operit#1292 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug webview
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
home-assistant/android#7524 ·
メンテナーはふだん 1 日以内に返信
-
Issue: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
OpenAPITools/openapi-generator#25021 ·
メンテナーはふだん 1 日以内に返信