kennytm / cargo-kcov

Cargo subcommand to run kcov to get coverage report on Linux
127 stars 20 forks source link

Have cargo-kcov download and install the latest release of kcov #26

Closed aghecenco closed 6 years ago

aghecenco commented 6 years ago

Currently, cargo-kcov downloads kcov v34 from the archive. In order to pick up new releases, install_kcov.sh needs to be committed every time it's necessary. The latest release could be identified, picked up and downloaded via GitHub's release API:


$ curl -s https://api.github.com/repos/SimonKagstrom/kcov/releases/latest | grep -Po '"tarball_url":.*?[^\\]",'
"tarball_url": "https://api.github.com/repos/SimonKagstrom/kcov/tarball/v35",

This would enable cargo-kcov users to benefit from the fixes submitted in kcov as soon as possible.