Skip to content

Unable to build image with local packages with dependencies not in indexes #1541

@mbrancato

Description

@mbrancato

I've been following a few issues with local packages recently. Originally, I was hoping #1264 would solve my problems, but with newer versions, I've identified some other problems. Other issues like #1448 were resolved, but didn't solve all the issues for local packages.

As of apko 0.23.0+ I've identified a new problem where local packages that have dependencies from upstream cannot be built. Packages that do not have dependencies (such as statically compiled) seem to work fine with the latest (0.25.1).

Here is what the output looks like in 0.25.1:

% apko build --arch aarch64 image.yaml image test.tar --ignore-signatures
Error: building "arm64" layer: installing apk packages: error getting package dependencies: solving "py3.13-celery-prometheus-exporter-bundle=1.7.0-r0" constraint: not in indexes
2025/02/24 22:24:36 INFO error during command execution: building "arm64" layer: installing apk packages: error getting package dependencies: solving "py3.13-celery-prometheus-exporter-bundle=1.7.0-r0" constraint: not in indexes

Version 0.22.1 still works with local dependencies, but everything newer appears to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions