@@ -34,15 +34,15 @@ def __init__(self, session: nox.Session):
34
34
self .cargo_bins = cargo_bins
35
35
if IS_CI :
36
36
for dep , ver in cargo_bins .items ():
37
- ci_logger .info ("Found %s: %s" % (dep , ver ))
37
+ ci_logger .info ("cargo installed %s: %s" % (dep , ver ))
38
38
self .cargo_install_cmd : tuple [str , ...] = ("cargo" , "install" )
39
39
40
40
if CARGO_BINSTALL in cargo_bins :
41
41
ci_logger .info (
42
42
"Found %s: %s" % (CARGO_BINSTALL , cargo_bins [CARGO_BINSTALL ])
43
43
)
44
- elif which (CARGO_BINSTALL ) is not None :
45
- ci_logger .info ("Found: %s in PATH " % CARGO_BINSTALL )
44
+ elif path := which (CARGO_BINSTALL ) is not None :
45
+ ci_logger .info ("Found: %s in %s " % ( CARGO_BINSTALL , path ) )
46
46
elif not IS_CI :
47
47
ci_logger .info ("Installing %s" % CARGO_BINSTALL )
48
48
match platform .system ():
@@ -84,8 +84,8 @@ def install():
84
84
if req in self .cargo_bins :
85
85
ci_logger .info ("Found %s %s" % (req , self .cargo_bins [req ]))
86
86
installed = True
87
- elif which (req ) is not None :
88
- ci_logger .info ("Found: %s in PATH " % req )
87
+ elif path := which (req ) is not None :
88
+ ci_logger .info ("Found: %s in %s " % ( req , path ) )
89
89
installed = True
90
90
if ver or not installed :
91
91
install ()
0 commit comments