You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing jib using mise, only the startup script is installed without the required JAR file. This causes the tool to fail with a ClassNotFoundException.
Current Behavior
% mise x jib@latest -- jib --help
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Error: could not find or load main class com.google.cloud.tools.jib.cli.JibCli
Only the startup script is installed:
% find .local/share/mise/installs/jib/0.13.0-cli -type f
.local/share/mise/installs/jib/0.13.0-cli/bin/jib
Expected Behavior
The installation should include both the startup script and the JAR file required to run jib.
Root Cause
jib is installed using the ubi backend, which by default only extracts executables from archives. For Java applications like jib, we need to extract all files from the archive using UbiBuilder::extract_all.
Technical Details
The ubi backend currently lacks the ability to specify extract_all option, which is required for proper installation of Java applications that depend on JAR files:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
When installing jib using mise, only the startup script is installed without the required JAR file. This causes the tool to fail with a ClassNotFoundException.
Current Behavior
Only the startup script is installed:
Expected Behavior
The installation should include both the startup script and the JAR file required to run jib.
Root Cause
jib is installed using the ubi backend, which by default only extracts executables from archives. For Java applications like jib, we need to extract all files from the archive using
UbiBuilder::extract_all
.Technical Details
The ubi backend currently lacks the ability to specify
extract_all
option, which is required for proper installation of Java applications that depend on JAR files:Proposed Solution
Add support for specifying
extract_all
option in mise's ubi backend configuration, and set it totrue
for jib installation.Environment
Beta Was this translation helpful? Give feedback.
All reactions