File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
- import platform
3
2
import re
4
3
import sys
5
4
import nox
@@ -36,22 +35,6 @@ def __init__(self, session: nox.Session):
36
35
"Found %s: %s" % (CARGO_BINSTALL , cargo_bins [CARGO_BINSTALL ])
37
36
)
38
37
self .cargo_install_cmd = ("cargo" , "binstall" , "-y" )
39
- else :
40
- ci_logger .info ("Installing %s" % CARGO_BINSTALL )
41
- match platform .system ():
42
- case "Windows" :
43
- one_liner = """Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content"""
44
- session .run (* one_liner .split (), external = True )
45
- case "Linux" | "Darwin" :
46
- one_liner = "curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash"
47
- session .run (* one_liner .split (), external = True )
48
- case _:
49
- session .run (
50
- * self .cargo_install_cmd ,
51
- CARGO_BINSTALL ,
52
- "--locked" ,
53
- external = True ,
54
- )
55
38
56
39
def check_install (self , req : str , session : nox .Session ):
57
40
"""Use cargo to ensure `req` is installed.
You can’t perform that action at this time.
0 commit comments