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

Merge changes from upstream to fix "rm: cannot remove '/app': Read-only file system" #1

Closed
wants to merge 2 commits into from

Conversation

edmorley
Copy link

@edmorley edmorley commented Apr 1, 2021

Hi

I'm on the team that maintains Heroku's build system and official buildpacks.

Very soon we are going to make a change to the Heroku build system that will mean builds using this buildpack emit warnings like:

remote: -----> Subdir buildpack app detected
remote: -----> Subdir buildpack in <DIRECTORY>
remote:        creating cache: /tmp/codon/tmp/cache
remote:        created tmp dir: /tmp/codon/tmp/cache/subdirXF9Kh
remote:        moving working dir: <DIRECTORY> to /tmp/codon/tmp/cache/subdirXF9Kh
remote:        cleaning build dir /app
remote: rm: cannot remove '/app': Read-only file system

A fix for these build log warnings has been merged into the upstream repository from which this one is forked:
timanovsky#10

This PR merges the changes from the upstream repository (which include that fix) back to this fork, so as to avoid these warnings in your builds in the future.

If you would like to avoid the merge commit from this PR (so that the two repository's Git histories do not diverge), then I'd recommend closing this PR as unmerged, and instead pulling upstream directly into master of this repo.

For more information about the upcoming Heroku build system change and why this fix was needed, see:
timanovsky#9

I'm also happy to answer any questions you may have via discussion on this PR :-)

edmorley and others added 2 commits March 1, 2021 12:51
Since otherwise once Heroku builds are run from `/app`, builds
will output warnings due to the `/app` root being read only:

```
remote: -----> Subdir buildpack app detected
...
remote:        cleaning build dir /app
remote: rm: cannot remove '/app': Read-only file system
```

Fixes #9.
Don't delete the build directory root
@edmorley
Copy link
Author

edmorley commented Apr 1, 2021

cc @otech47

@edmorley
Copy link
Author

1 year ping :-)

@edmorley edmorley closed this Jun 14, 2022
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

Successfully merging this pull request may close these issues.

2 participants