Typer --install-completion in Dockerfile RUN instruction fails #862
Replies: 1 comment
-
Well i will close this discussion the most suitable solution is to go via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I have created a Dockerfile:
With typer==0.10.0 the auto-completion command works as expected but with typer==0.12.3 command fails:
It seems like something has changed regarding auto completionin the version 0.12.3 or am i doing something wrong?
I cannot downgrade and pinned to 0.10.0 because the fastapi depends on fastapi-cli which requires typer>=0.12, i could use the fastapi-slim but in any case seems like an issue with latest typer package.
Most probably is an issue with the:
In this case the line 217 may raise exception ShellDetectionFailure(): https://github.com/tiangolo/typer/blob/master/typer/_completion_shared.py#L217
Operating System
Linux
Operating System Details
CRI - Docker
Typer Version
0.12.3
Python Version
3.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions