Skip to content

Image layer extraction excludes files in all folders named dev #457

@examosa

Description

@examosa

The _untar_layers method of ContainerStructure adds an --exclude=dev/* to the tar command. I would presume this is to exclude files from /dev at the filesystem root.
However, the way it's written currently excludes files from any folder named dev in the image. This breaks any image that relies on nested dev folders (e.g. node_modules/next/server/dev). For example:

$ udocker run --rm diegosouzapw/omniroute:latest
// …
node:internal/modules/cjs/loader:1476
  const err = new Error(message);
              ^
Error: Cannot find module '../dev/browser-logs/file-logger'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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