poetry
poetry copied to clipboard
fix `poetry shell doesn't work if space character in .venv path`
fix zsh: poetry shell doesn't work if space character in .venv path
Pull Request Check List
Resolves: #7244
Confirmed working on bash, zsh
Or even simpler:
c.sendline(f'emulate bash -c ". {shlex.quote(str(activate_path))}"')
(so we get emulate bash -c ". '/some path/activate'"
)
But the safest one would be:
c.sendline(f"emulate bash -c {shlex.quote(f'. {shlex.quote(str(activate_path))}')}")
(so we get emulate bash -c '. '"'"'/some path/activate'"'"''
)
Any updates on whether this will get merged in the near future? I am running into the same issue on macOS unfortuantely.
@PabloEmidio when you have a chance, please check this.
@PabloEmidio when you have a chance, please check this.
For what I saw, it should do it. Could any test be added to validate this scenary?
@PabloEmidio when you have a chance, please check this.
For what I saw, it should do it. Could any test be added to validate this scenary?
Not fast because the executing bash script is moked, and I don't have enough expertise in pytest to change that.
pre-commit.ci autofix
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.