Skip to content

content.read() fails on "invalid content path" #8

Closed

Description

@woky

With following slice in slices/base-passwd.yaml:

package: base-passwd
slices:
  base:
    contents:
      /usr/share/base-passwd/group.master:
    mutate: |
      data = content.read("/usr/share/base-passwd/group.master")

The chisel fails with following:

$ ~/devel/chisel-releases
$ chisel cut --release $PWD --root output  base-passwd_base
...
2022/06/14 10:52:43 Fetching pool/main/b/base-passwd/base-passwd_3.5.52build1_amd64.deb...
2022/06/14 10:52:43 Extracting files from package "base-passwd"...
error: slice base-passwd_base: invalid content path: /usr/share/base-passwd/group.master

Adding { mutable: true } option to the file in contents has no effect.

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