-
Notifications
You must be signed in to change notification settings - Fork 893
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
Duplicative auto completions #3156
Comments
This is probably some clap interaction. |
This is also an issue for me but it doesn't occur with Cargo completions. Something specifically about Rustup completions must have gone wrong. |
@Xenfo do you want to test if this still happens with #3444? |
EDIT: see more minimal
cd $(mktemp -d)
cat << EOF > Containerfile
FROM alpine
RUN apk add --no-cache zsh curl
RUN zsh -c "curl https://sh.rustup.rs -sSf | sh -s -- -y"
RUN mkdir ~/.zfunc
RUN ~/.cargo/bin/rustup completions zsh > ~/.zfunc/_rustup
RUN echo 'export PATH="/root/.cargo/bin/:\$PATH"' > ~/.zshrc
RUN echo 'fpath+=~/.zfunc' >> ~/.zshrc
RUN echo 'autoload -Uz compinit' >> ~/.zshrc
RUN echo 'compinit' >> ~/.zshrc
ENTRYPOINT /bin/zsh
EOF
podman build . --iidfile rustupid
podman run -it $(cat rustupid) |
@omertuc I can reproduce this on d288805 with the following Dockerfile: FROM rust:alpine
RUN apk add --no-cache zsh curl
ADD _rustup /root/.zfunc/
RUN echo 'export PATH="/root/.cargo/bin/:$PATH"' > ~/.zshrc
RUN echo 'fpath+=~/.zfunc' >> ~/.zshrc
RUN echo 'autoload -Uz compinit' >> ~/.zshrc
RUN echo 'compinit' >> ~/.zshrc
ENTRYPOINT /bin/zsh @samchouse Thanks for your insight. This seems to have something to do with the |
Unfortunately, given the analysis above in #3156 (comment), I'm afraid there's not much we can do about this situation. |
Would something like this help in the future? |
Closing in favor of #2268. |
Problem
Duplicative auto completions
Steps
Possible Solution(s)
No response
Notes
No response
Rustup version
Installed toolchains
The text was updated successfully, but these errors were encountered: