paketo-buildpacks / stacks

stacks
Apache License 2.0
35 stars 23 forks source link

Mark workspace directories as safe for git #129

Closed ryanmoran closed 2 years ago

ryanmoran commented 2 years ago

Summary

Marking the popular workspace directories as safe for git will prevent issues running the latest versions that now check the owner of the top-level directory.

Use Cases

On kpack, and maybe other platforms, the workspace directory is owned by root and cannot easily be changed to another user. Additionally, recent stacks now include a version of git that includes a check of ownership for the top-level directory in a repository. Functionally, this has meant that builds on kpack that include a top-level .git directory and run on the latest versions of the stack could fail if they invoke any git command.

Checklist