Skip to content

apko include can loop forever by recursively included files. #1627

Description

@justinvreeland

The feature is marked deprecated but it's useful and I'd like to use it. We could probably track the files that were included to check against.

~/scratch
❯ cat apko-loop.yaml 
include: ./apko-loop.yaml
❯ apko build ./apko-loop.yaml test test
2025/04/17 09:14:07 INFO including ./apko-loop.yaml for configuration
2025/04/17 09:14:07 INFO including ./apko-loop.yaml for configuration
...
2025/04/17 09:14:12 INFO including ./apko-loop.yaml for configuration
fish: Job 1, 'apko build ./apko-loop.yaml tes…' terminated by signal SIGTERM (Polite quit request)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions