Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

edmorley
Copy link

@edmorley edmorley commented Mar 4, 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 fail with errors like:

remote: -----> Monorepo app detected
remote: rm: cannot remove '/app': Read-only file system
remote:       FAILED to copy directory into place
remote:  !     Push rejected, failed to compile Monorepo app.

A fix for this compatibility issue has been merged into the upstream repository from which this one is forked:
lstoll/pull/13

This PR merges the changes from the upstream repository (which include that fix) back to this fork, so as to avoid any disruption to 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:
lstoll/issues/12

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

ecbrodie and others added 4 commits April 6, 2019 19:43
Update title in README to match project title
Since otherwise once Heroku builds are run from `/app`, builds
will fail due to the `/app` root being read only:

```
remote: -----> Monorepo app detected
remote: rm: cannot remove '/app': Read-only file system
remote:       FAILED to copy directory into place
remote:  !     Push rejected, failed to compile Monorepo app.
```

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

edmorley commented Mar 4, 2021

Ah it appears there are conflicts due to changes in this fork. You will need to resolve this via another branch/PR, but hopefully this gives you a heads up about the upcoming changes and what's required to fix the buildpack :-)

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

Successfully merging this pull request may close these issues.

3 participants