Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building an image fails when using a custom buildpack image with long file names #26445

Closed
scottfrederick opened this issue May 12, 2021 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@scottfrederick
Copy link
Contributor

Building an image using the Maven or Gradle plugin with a custom buildpack from an image causes an error if any file in the buildpack image has a path longer than 100 characters.

The configuration:

<project>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <image>
                        <buildpacks>
                            <buildpack>gcr.io/paketo-buildpacks/java-native-image:5.3.0</buildpack>
                        </buildpacks>
                    </image>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

results in:

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.0-SNAPSHOT:build-image (default-cli) on project webflux-netty: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.5.0-SNAPSHOT:build-image failed: file name '/cnb/buildpacks/paketo-buildpacks_java-native-image/5.3.0/.git/logs/refs/heads/fix/remove-ca-certificates' is too long ( > 100 bytes) -> [Help 1]
@scottfrederick scottfrederick self-assigned this May 12, 2021
@scottfrederick scottfrederick added this to the 2.5.0 milestone May 12, 2021
@scottfrederick scottfrederick added the type: bug A general bug label May 12, 2021
@scottfrederick scottfrederick changed the title Building an image using a custom buildpack image with long file names fails Building an image fails when using a custom buildpack image with long file names May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant