Skip to content

essential loop detected if multiple package-level essentials are given #271

Description

@zhijie-yang

When chisel consumes an SDF with multiple items defined in the package-level essentials, it errors out upon validation.

Example by modifying slices/hello.yaml from the ubuntu-26.04 branch of chisel-releases:

package: hello

essential:
  hello_copyright:
  hello_bins:

slices:
  bins:
    essential:
      libc6_libs:
    contents:
      /usr/bin/hello:

  copyright:
    contents:
      /usr/share/doc/hello/copyright:

Run a cut command:

chisel cut --ignore=unstable --release ./ --root rootfs/ hello_bins

Chisel errors out:

2026/03/05 10:26:07 Processing ./ release...
error: essential loop detected: hello_bins, hello_copyright

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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