sagiegurari / cargo-make

Rust task runner and build tool.
https://sagiegurari.github.io/cargo-make/
Apache License 2.0
2.46k stars 123 forks source link

docker command not found under windows #1097

Closed Matrix-Zhang closed 1 month ago

Matrix-Zhang commented 1 month ago

in duckscript runner, i execute docker command, the duckscript can not find the docker command, the PATH is empty, but get_env PATH is have full things

 Error while running duckscript: Source: Unknown Line: 6 - Command: docker not found.
sagiegurari commented 1 month ago

can you explain path empty but getenv for path is not? can you print it?

Matrix-Zhang commented 1 month ago

can you explain path empty but getenv for path is not? can you print it?

echo ${PATH} //this is print nothing
path = get_env PATH
echo ${path} //will print system $PATH
docker ps -a // docker command not found
Matrix-Zhang commented 1 month ago

ok, should use exec docker