Closed isometry closed 2 weeks ago
@jonjohnsonjr I tracked down the root-cause of the error and it was introduced in #1327, specifically the following check is failing: https://github.com/chainguard-dev/apko/blob/c8b52a03eb1b6bb4285380c7b885ee660cb10349/pkg/apk/apk/cache.go#L320
This happens because cacheDir
is not an absolute path when provided via the CLI. A fix could be to resolve cacheDir
to an absolute path when initializing the cache transport.
@isometry as a work-around if you provide an absolute path via --cache-dir $PWD/apks/cache
you won't hit this.
Following the release of v0.19.3 (and including v0.19.6), explicitly setting a
--cache-dir
to either of thebuild
orpublish
verbs breaks image builds referencing the wolfi-os keyring:This worked without issue in v0.19.2.
Disabling the local cache is sufficient to workaround the issue, but is suboptimal:
It seems likely that this regression was introduced in #1327 ?
cc. @jonjohnsonjr