Closed beyse closed 1 year ago
So it looks like the code in the crate makes some assumptions on the environment that are not fulfilled in a Docker container or the container I created is missing an important dependency or something.
Hi, yeah, the tests require yt-dlp to be installed. See also the GitHub action file here (this one installs youtube-dl as well, but that's no longer necessary).
If you need the application to download to download yt-dlp by itself, you can use the built-in function (behind a feature flag), see this example
Issue description
I want to use the crate inside a minimal docker container but the tests of this crate fail.
This also leads to a problem in other projects like this issue.
Steps to reproduce the issue
To reproduce you need docker installed in your machine.
git clone https://github.com/beyse/youtube-dl-rs.git
docker build -t yt .
docker run -it --rm -v ${PWD}:/home/youtube-dl-rs yt /bin/bash
cargo build
cargo test
What's the expected result?
I would expect all tests to pass ✅
What's the actual result?
7 / 8 tests fail ❌
Additional details / screenshot