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 fun_run to its own crate #232

Merged
merged 2 commits into from
Nov 6, 2023
Merged

Move fun_run to its own crate #232

merged 2 commits into from
Nov 6, 2023

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Nov 2, 2023

The fun_run library is small but it can stand on its own. I ported it to a crate as an exercise in code cleanup and to remove unnecessary dependencies.

@schneems schneems force-pushed the schneems/rm-rf-fun_run branch from 4d5bf64 to 2fb195e Compare November 2, 2023 17:34
@schneems schneems marked this pull request as ready for review November 2, 2023 17:39
@schneems schneems requested a review from a team as a code owner November 2, 2023 17:39
@schneems schneems enabled auto-merge (squash) November 2, 2023 17:44
@schneems schneems force-pushed the schneems/rm-rf-fun_run branch from 2fb195e to c13d88c Compare November 2, 2023 17:47
The `fun_run` library is small but it can stand on its own. I ported it to a crate as an exercise in code cleanup and to remove unnecessary dependencies.
@schneems schneems force-pushed the schneems/rm-rf-fun_run branch from c13d88c to 64aa67c Compare November 3, 2023 13:47
buildpacks/ruby/CHANGELOG.md Outdated Show resolved Hide resolved
@schneems schneems merged commit 016ee96 into main Nov 6, 2023
6 checks passed
@schneems schneems deleted the schneems/rm-rf-fun_run branch November 6, 2023 16:46
schneems pushed a commit to schneems/fun_run that referenced this pull request Nov 6, 2023
In the migration of the Ruby buildpack to use this crate I noticed a regression:

```
  - Running `bash -c "ps aux | grep cargo"`

            rschneeman       26398   0.0  0.0 408417520   9600 s004  S+   11:24AM   0:00.13 /Users/rschneeman/.cargo/bin/cargo-watch watch -c -x ltest
      rschneeman       17561   0.0  0.0 408494848    848 s000  R+    2:39PM   0:00.00 grep cargo
      rschneeman       17559   0.0  0.0 408627920   3088 s000  S+    2:39PM   0:00.00 bash -c ps aux | grep cargo
      rschneeman       15128   0.0  0.0 408433904  10176 s006  S+    2:35PM   0:00.40 /Users/rschneeman/.cargo/bin/cargo-watch watch -c -x ltest

  - Done (< 0.1s)
```

I isolated it to the `fun_run` PR heroku/buildpacks-ruby#232 and after some debugging found it was due to accidentally copying `child.stdout` for `child_stderr`. I added a test that verifies that stderr is redirected correctly.
edmorley added a commit to heroku/buildpacks-nodejs that referenced this pull request Nov 17, 2023
Since the feature branch no longer exists.

This will fix Dependabot erroring out with:

```
Errored with the message "Dependabot couldn't fetch the branch/reference for commons"
```

This also required adding `fun_run` as an explicit dependency, due to:
heroku/buildpacks-ruby#232
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