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

Protect directories from source removal #344

Open
fg-j opened this issue Jul 29, 2022 · 0 comments
Open

Protect directories from source removal #344

fg-j opened this issue Jul 29, 2022 · 0 comments
Labels
enhancement A new feature or request

Comments

@fg-j
Copy link

fg-j commented Jul 29, 2022

Describe the Enhancement

There should be a way to tell the buildpack not to delete certain parts of the source code in /workspace.

Possible Solution

Respect the environment variables that https://github.com/paketo-buildpacks/source-removal respects so that users can protect files from being removed.

Motivation

I was trying to build https://github.com/Squidex/squidex with the buildpack. The app has a frontend and backend that are designed to run in the same container. The Dockerfile multistage build transpiles the JavaScript frontend into static assets in a directory, and compiles the .NET backend into *.dlls.

I can't build this app with buildpacks because the dotnet-publish buildpack removes everything in the working directory besides the compiled app. My static assets get deleted if I build them before this buildpack runs, and the JavaScript source code gets deleted if I try to transpile it after this buildpack runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or request
Projects
None yet
Development

No branches or pull requests

1 participant