Skip to content

Layertools list and extract commands ignore empty layers #21301

Closed
@ciberkleid

Description

@ciberkleid

I believe issue 20858 (Ensure empty layers are written to the index file), which was closed as fixed in RC1, is still happening. I update my boot version to RC1 for a project that does not use any snapshots and am still getting an unpacked directory that is missing the snapshots folder, hence the following Dockerfile excerpt fails saying the folder does not exist:

ARG DEPENDENCY=/app/target/dependency
COPY --from=build ${DEPENDENCY}/dependencies/ .
COPY --from=build ${DEPENDENCY}/spring-boot-loader/ .
COPY --from=build ${DEPENDENCY}/snapshot-dependencies/ .   # <---- fails here
COPY --from=build ${DEPENDENCY}/application/ .

From my pom.xml:

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.0.RC1</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

I even tried specifying the version under the maven plugin as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions