Skip to content
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

Doc and install: avoid security issue on Windows #10428

Open
paugier opened this issue Jan 9, 2025 · 5 comments
Open

Doc and install: avoid security issue on Windows #10428

paugier opened this issue Jan 9, 2025 · 5 comments
Labels
releases Related to building and distributing release artifacts of uv

Comments

@paugier
Copy link

paugier commented Jan 9, 2025

In https://docs.astral.sh/uv/getting-started/installation/#installation-methods, the given install command is currently for Windows

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

I was not able to run this because of a security software.

However, I was able to follow the installation instructions "Install via Scoop:" in https://pipx.pypa.io/stable/installation/ for which one needs to execute:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

Therefore, I guess installation instructions for UV (or the script I don't know) could be improved to avoid such security blockage.

@zanieb zanieb added the releases Related to building and distributing release artifacts of uv label Jan 9, 2025
@zanieb
Copy link
Member

zanieb commented Jan 9, 2025

What did your security software do? Was there an error?

@paugier
Copy link
Author

paugier commented Jan 9, 2025

The security software closed the terminal and reported an issue to my company 🙂 (I know that because I was told about).

@zanieb
Copy link
Member

zanieb commented Jan 9, 2025

Do you know for what reason? This doesn't really sound like something we can fix unless we sign the installers or something (ref #10336)

@paugier
Copy link
Author

paugier commented Jan 10, 2025

I was finally able to install UV with the .ps1 installer with

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
irm https://astral.sh/uv/install.ps1 -OutFile install-uv.ps1
iex .\install-uv.ps1

So it might just be that what does not like the security software is only the | iex ? However, | Invoke-Expression worked with Scoop, so I don't know.

@paugier
Copy link
Author

paugier commented Jan 10, 2025

It might be useful to improve the documentation. About this and also not using short Powershell aliases. I guess very few people know "irm" and "iex" so it is really "copy paste this command that you don't understand". The longer version with few steps and with a local (and checkable) install-uv.ps1 script might be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
releases Related to building and distributing release artifacts of uv
Projects
None yet
Development

No branches or pull requests

2 participants