Skip to content

Melange 0.28.0: pinned repository --repository-add doesn't get picked up with test #2066

@sanmai-NL

Description

@sanmai-NL

Adding the repository with a pin does not appear to work. Even if the lefthook dependency must (?) be encoded without the @ pin in this case for it to work (a feature request to add this in itself), I expected the added repository to be present in the configuration.

2025-07-03T11:54:01.878549+0000 - DEBUG - aimtools.cli - execute - melange --log-level=debug test --apk-cache-dir=/builds/han-aim/template/base-images/.cache/apk --arch=amd64 --cache-dir=/builds/han-aim/template/base-images/.cache/apk --debug --debug-runner --keyring-append=/builds/han-aim/template/base-images/melange.rsa.pub --runner=bubblewrap --repository-append=@local /builds/han-aim/template/base-images/k8s/apko/packages/packages -- /builds/han-aim/template/base-images/k8s/apko/packages/lefthook/melange.yml
Executing <Task pending name='Task-1' coro=<main() running at /builds/han-aim/template/base-images/.venv/lib/python3.12/site-packages/loguru/_logger.py:1283> wait_for=<Future pending cb=[Task.task_wakeup()] created at /root/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/asyncio/base_events.py:448> cb=[_run_until_complete_cb() at /root/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/asyncio/base_events.py:181, WorkerThread.stop()] created at /root/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/asyncio/runners.py:100> took 0.108 seconds
2025-07-03T11:54:03.060193+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU evaluating pipelines for package requirements
2025-07-03T11:54:03.060499+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU trying to load pipeline "fetch" from "/usr/share/melange/pipelines"
2025-07-03T11:54:03.060641+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU trying to load pipeline "fetch" from embedded fs pipelines/"fetch".yaml
2025-07-03T11:54:03.060757+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU   adding package "wget" for pipeline "fetch"
2025-07-03T11:54:03.060865+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU trying to load pipeline "fetch" from "/usr/share/melange/pipelines"
2025-07-03T11:54:03.060971+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU trying to load pipeline "fetch" from embedded fs pipelines/"fetch".yaml
2025-07-03T11:54:03.061116+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU doing pre-flight checks
2025-07-03T11:54:03.061229+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU initializing apk database
2025-07-03T11:54:03.061340+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU ignoring non-http(s) repository @local /builds/han-aim/template/base-images/k8s/apko/packages/packages
2025-07-03T11:54:03.061443+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU performing request method=GET url=https://packages.wolfi.dev/os/apk-configuration
2025-07-03T11:54:03.061540+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU performing request method=GET url=https://packages.wolfi.dev/os/apk-configuration
2025-07-03T11:54:03.061634+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU finished initializing apk database
2025-07-03T11:54:03.061727+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU setting apk world
2025-07-03T11:54:03.061821+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU initializing apk keyring
2025-07-03T11:54:03.061913+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU setting apk repositories: [@local /builds/han-aim/template/base-images/k8s/apko/packages/packages https://packages.wolfi.dev/os]
2025-07-03T11:54:03.062010+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU installing key https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
2025-07-03T11:54:03.062156+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU performing request method=HEAD url=https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
2025-07-03T11:54:03.062263+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU installing key /builds/han-aim/template/base-images/melange.rsa.pub
2025-07-03T11:54:03.062368+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO image configuration:
2025-07-03T11:54:03.062463+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO   contents:
2025-07-03T11:54:03.062557+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO     build repositories: []
2025-07-03T11:54:03.062651+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO     runtime repositories: [https://packages.wolfi.dev/os]
2025-07-03T11:54:03.062743+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO     keyring:      [https://packages.wolfi.dev/os/wolfi-signing.rsa.pub]
2025-07-03T11:54:03.062836+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO     packages:     [busybox lefthook]
2025-07-03T11:54:03.062927+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO   accounts:
2025-07-03T11:54:03.063053+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO     runas:
2025-07-03T11:54:03.063173+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO     users:
2025-07-03T11:54:03.063289+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO       - uid=1000(build) gid=1000
2025-07-03T11:54:03.063388+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO     groups:
2025-07-03T11:54:03.063481+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 INFO       - gid=1000(build) members=[build]
2025-07-03T11:54:03.063570+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU synchronizing with desired apk world
2025-07-03T11:54:03.063658+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU determining desired apk world
2025-07-03T11:54:03.063747+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:01 DEBU performing request method=HEAD url=https://packages.wolfi.dev/os/x86_64/APKINDEX.tar.gz
2025-07-03T11:54:03.063842+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:02 DEBU got 2 indexes:
2025-07-03T11:54:03.063931+0000 - DEBUG - aimtools.cli - execute - [stderr] /builds/han-aim/template/base-images/k8s/apko/packages/packages/x86_64/APKINDEX.tar.gz
2025-07-03T11:54:03.064045+0000 - DEBUG - aimtools.cli - execute - [stderr] https://packages.wolfi.dev/os/x86_64/APKINDEX.tar.gz
2025-07-03T11:54:03.064159+0000 - DEBUG - aimtools.cli - execute - [stderr] 2025/07/03 11:54:03 DEBU buildImage failed: installing apk packages: error getting package dependencies: solving "lefthook" constraint: not in indexes

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