Skip to content

Commit

Permalink
Fix regression in calling subprocesses with updated PATH (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Dec 13, 2023
1 parent 3054315 commit 3d5c35e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/history/hatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

***Fixed:***

- Fix regression in calling subprocesses with updated PATH

## [1.8.0](https://github.com/pypa/hatch/releases/tag/hatch-v1.8.0) - 2023-12-11 ## {: #hatch-v1.8.0 }

***Changed:***
Expand Down
2 changes: 1 addition & 1 deletion src/hatch/utils/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def check_command_output(self, command: str | list[str], *, shell: bool = False,
kwargs.setdefault('stderr', self.modules.subprocess.STDOUT)
self.populate_default_popen_kwargs(kwargs, shell=shell)

process = self.modules.subprocess.run(command, shell=shell, **kwargs)
process = self.modules.subprocess.run(self.format_for_subprocess(command, shell=shell), shell=shell, **kwargs)
if process.returncode:
self.__display_func(process.stdout.decode('utf-8'))
self.exit_with_code(process.returncode)
Expand Down

0 comments on commit 3d5c35e

Please sign in to comment.