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

fix: run commands in single shell #369

Merged
merged 1 commit into from
Sep 7, 2022
Merged

fix: run commands in single shell #369

merged 1 commit into from
Sep 7, 2022

Conversation

blaugold
Copy link
Collaborator

@blaugold blaugold commented Sep 6, 2022

This change removes runInShell: true from Process.start when
executing commands. This option is unnecessary since Melos is spawning
a shell itself to execute the command. Using runInShell: true
becomes a problem for command chains (e.g. '&&' or '||').
In this case only the first command is executed in the shell that Melos
is spawning and the rest of the commands are executed in the shell
spawned by Process.start.

The change also cleans up a few other related bits of code.

Fixes #367

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)
  • 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
  • ! -- Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 refactor -- Code refactor
  • ci -- Build configuration change
  • 📝 docs -- Documentation
  • 🗑️ chore -- Chore

This change removes `runInShell: true` from `Process.start` when
executing commands. This option is unnecessary since Melos is spawning
a shell itself to execute the command. Using `runInShell: true`
becomes a problem for command chains (e.g. '&&' or '||').
In this case only the first command is executed in the shell that Melos
is spawning and the rest of the commands are executed in the shell
spawned by `Process.start`.

The change also cleans up a few other related bits of code.

Fixes #367
@blaugold blaugold requested a review from Salakar September 6, 2022 12:08
@blaugold blaugold merged commit 1ab2e29 into main Sep 7, 2022
@blaugold blaugold deleted the blaugold/issue367 branch September 7, 2022 14:58
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.

fix: Error with postbootstrap command
2 participants