Skip to content

Config merge inherits distro-specific packages across flavors #228

@schmitthub

Description

@schmitthub

Problem

When merging layered configs, packages from one distro flavor leak into others. For example, Debian-specific packages (e.g., build-essential) get inherited into Alpine builds where they don't exist, causing apk add failures.

This affects any multi-layer config setup where a parent layer specifies packages for one distro and a child layer targets a different flavor.

Options

  1. Distro-aware merge logic — merge engine understands which packages belong to which distro family and filters during Dockerfile generation
  2. Per-flavor package lists — schema supports packages.debian / packages.alpine instead of a flat packages list
  3. Drop multi-distro support — simplify to a single supported base distro

Current impact

Alpine builds are broken in any project that inherits packages from a Debian-configured parent layer. Other non-Debian flavors would hit the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions