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

Buildpack incompatible with building in /app #10

Open
edmorley opened this issue Mar 9, 2021 · 0 comments
Open

Buildpack incompatible with building in /app #10

edmorley opened this issue Mar 9, 2021 · 0 comments

Comments

@edmorley
Copy link

edmorley commented Mar 9, 2021

Hi

I'm on the team that maintains Heroku's build system and official buildpacks, and wanted to let you know about a future incompatibility with this buildpack.

The directory in which the Heroku build system performs builds is currently a path like/tmp/build_<hash>.

In the near future this path will be changing to /app so that the build-time and run-time app locations are the same path - in order to resolve a number of long standing bugs, and reduce the number of hacks buildpacks have to use to work around non-relocatable languages/toolchains.

This change will mean builds using this buildpack will fail with errors like:

mv: cannot copy a directory, '/app', into itself, '/app/thunder'

To reproduce, the new behaviour can be enabled manually (ahead of it being the new default), using:

heroku labs:enable build-in-app-dir -a my_app_name

To fix, some reworking of these lines will be needed:

mv $build_dir /app/thunder
mkdir $build_dir

cd ${build_dir}
mv /app/thunder ${build_dir}

Many thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant