From 7361172c113e2c0570d2c8664a1fa696ffbf8f3e Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 9 Jan 2025 21:30:35 -0500 Subject: [PATCH] fix: Ensure pipx install is global (#199) Otherwise, `pipx install` binaries are not on the PATH for generator commands. --- internal/actions/setup_environment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/actions/setup_environment.go b/internal/actions/setup_environment.go index 426bc4c..ee9cb5b 100644 --- a/internal/actions/setup_environment.go +++ b/internal/actions/setup_environment.go @@ -38,7 +38,7 @@ func installPoetry() error { poetrySpec = "poetry==" + poetryVersion } - cmd := exec.Command("pipx", "install", poetrySpec) + cmd := exec.Command("pipx", "install", "--global", poetrySpec) if err := cmd.Run(); err != nil { return fmt.Errorf("error installing poetry: %w", err)