jib icon indicating copy to clipboard operation
jib copied to clipboard

Jib CLI base image cache problem

Open scrat98 opened this issue 1 year ago • 0 comments

Jib cli not released with latest jib-core version. As a result it leads to already fixed issue https://github.com/GoogleContainerTools/jib/pull/3974

Steps to repro:

  1. jib.yaml
apiVersion: jib/v1alpha1
kind: BuildFile

from:
  image: "nginx:1.25.4-alpine@sha256:31bad00311cb5eeb8a6648beadcf67277a175da89989f14727420a80e2e76742"
  1. Execute command twice (to make cache work) jib build --target=docker://jib-cli-quickstart

  2. Error

java.util.concurrent.ExecutionException: java.lang.ClassCastException: class com.google.cloud.tools.jib.image.json.OciIndexTemplate cannot be cast to class com.google.cloud.tools.jib.image.json.V22ManifestListTemplate (com.google.cloud.tools.jib.image.json.OciIndexTemplate and com.google.cloud.tools.jib.image.json.V22ManifestListTemplate are in unnamed module of loader 'app')

Workaround: build jib cli from source

scrat98 avatar Apr 01 '24 23:04 scrat98