Closed BiribiriJaNai closed 5 years ago
I have the same problem.
I know why the task fails and I should have looked at the source code first.
When the task runs on Windows, there's no problem because you're shipping 7zip.exe with the task.
On the other hand, when running on Linux, you're assuming that zip is already installed on the OS, which is not the case on a freshly installed VM...
A simple sudo apt-get install zip
solved the problem in my case, but do you plan to address this?
Tasks are tool runners and prefer to run tools brought by the system or container. The only reason we added 7z to win is it’s not on most systems likes Linux and there’s not an easy cmd like apt-get to get it.
@bryanmacfarlane , thanks for your prompt answer. I agree, tasks should be tool runners. But instead of failing, could we use a capability-demand-like system to alert the user that the task he's using may need an external tool? Either way, I don't mind installing these tools beforehand.
I just ran into this same exact issue. Thank the computer gods for @BiribiriJaNai for having a look.
I want to echo the request of at least print some helpful information if zip is missing
A very light & minimal VM (which we should strive to do on build machines) will most likely not contain numerous tools. At least making the error message more "friendly" would be great.
I ran into this today, I was able to install zip utility using apt-get. it would be nice to have this included as part of an extension maybe?
Environment
Issue Description
using this config in my Yaml pipeline,
the task fails with the message Failed which: Not found zip: null
Task logs
Edit: The task does work properly on a Windows agent.