You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.
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.
Once this change comes into effect this buildpack will error like so:
remote: -----> Python app detected
remote: cp: cannot stat '/app/!(tmp)': No such file or directory
This is because the buildpack tries to move the contents of /app to a temporary location, followed by moving BUILD_DIR (which is now /app) into /app.
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, the file moves (at both the start and end of the build) need to be put behind a conditional that first checks if BUILD_DIR is already /app:
Hi @edmorley. Thanks for the information! I haven't touched this repository in years, it's not maintained anymore. README links to a fork that used to be active, not sure if it still is.
I'll archive the repo to avoid future confusion.
Cheers!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.Once this change comes into effect this buildpack will error like so:
This is because the buildpack tries to move the contents of
/app
to a temporary location, followed by moving BUILD_DIR (which is now /app) into/app
.To reproduce, the new behaviour can be enabled manually (ahead of it being the new default), using:
To fix, the file moves (at both the start and end of the build) need to be put behind a conditional that first checks if BUILD_DIR is already
/app
:heroku-buildpack-python-sklearn/bin/compile
Lines 42 to 55 in bd93808
heroku-buildpack-python-sklearn/bin/compile
Lines 202 to 203 in bd93808
The text was updated successfully, but these errors were encountered: