Binary images are fallback images that require java
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- build-system, devops
Línea de trabajo
Comienza en tools/cli-application/build.gradle, en la línea 23, y compara sus opciones de nativeImage con la advertencia sobre funcionalidades no compatibles del último registro de compilación de Linux enlazado. Determina cómo se pasan varias opciones al paso nativeImage de Gradle y, después, verifica que la native image publicada se ejecuta en el entorno de CI de la documentación sin Java.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Kotlin
- Estrellas
- 16
- Forks
- 7
- Merge medio
- 2 d 8 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de commercetools/rmf-codegen
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
commercetools/rmf-codegen#333 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
commercetools/rmf-codegen#323 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
commercetools/rmf-codegen#313 · 2 comentarios ·
-
Add support for more languagesAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
commercetools/rmf-codegen#306 · 5 comentarios ·
-
Validate correct use of traitsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 40/100
commercetools/rmf-codegen#295 ·
Todos los issues de commercetools/rmf-codegen
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
SimonHalvdansson/Harmonic-HN#363 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Automattic/pocket-casts-android#6095 ·
Los mantenedores suelen responder en 1 día