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

Move disk modifying operations out of setup! #125

Merged
merged 1 commit into from
Sep 14, 2020
Merged

Conversation

schneems
Copy link
Contributor

As described in heroku/heroku-buildpack-ruby#1061 it's possible to accidentally modify disk when you didn't intend to using the setup! API. This PR fixes that by moving all the disk mutating calls to it's own method and ensuring it only gets called while in the directory.

lib/hatchet/app.rb Outdated Show resolved Hide resolved
@schneems schneems force-pushed the schneems/safe-setup branch 2 times, most recently from c036b82 to a3114df Compare September 14, 2020 20:33
As described in heroku/heroku-buildpack-ruby#1061 it's possible to accidentally modify disk when you didn't intend to using the `setup!` API. This PR fixes that by moving all the disk mutating calls to it's own method and ensuring it only gets called while in the directory.
@schneems schneems merged commit 21f4623 into main Sep 14, 2020
@schneems schneems deleted the schneems/safe-setup branch September 14, 2020 20:46
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