Skip to content

Commit ec2319b

Browse files
committed
show found path
1 parent 832763e commit ec2319b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

noxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ def __init__(self, session: nox.Session):
3434
self.cargo_bins = cargo_bins
3535
if IS_CI:
3636
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))
3838
self.cargo_install_cmd: tuple[str, ...] = ("cargo", "install")
3939

4040
if CARGO_BINSTALL in cargo_bins:
4141
ci_logger.info(
4242
"Found %s: %s" % (CARGO_BINSTALL, cargo_bins[CARGO_BINSTALL])
4343
)
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))
4646
elif not IS_CI:
4747
ci_logger.info("Installing %s" % CARGO_BINSTALL)
4848
match platform.system():
@@ -84,8 +84,8 @@ def install():
8484
if req in self.cargo_bins:
8585
ci_logger.info("Found %s %s" % (req, self.cargo_bins[req]))
8686
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))
8989
installed = True
9090
if ver or not installed:
9191
install()

0 commit comments

Comments
 (0)