Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage error: failed to parse lock file #66

Open
eldruin opened this issue Feb 8, 2020 · 4 comments
Open

Coverage error: failed to parse lock file #66

eldruin opened this issue Feb 8, 2020 · 4 comments

Comments

@eldruin
Copy link

eldruin commented Feb 8, 2020

Thanks for creating this @roblabla! I use it all the time :)
Today, however I have started seeing an error after the compilation of kcov:

error: failed to parse lock file at: /home/travis/build/eldruin/bmi160-rs/Cargo.lock

Caused by:
  invalid serialized PackageId for key `package.dependencies`

See the build log here

Do you know how to solve this?

@CAD97
Copy link
Collaborator

CAD97 commented Feb 8, 2020

I can tell you what causes it: the new lockfile format. I think cargo-travis "just" needs to update cargo-as-a-library and it should "just work" again.

In the mean time, you can commit a lockfile generated by a rust < 1.41 and it'll keep using the old, compatible lockfile format.

@roblabla
Copy link
Owner

roblabla commented Feb 9, 2020

I have a branch where I moved to using cargo metadata. It isn’t well tested though. If you want to try it, try to install the cargo-metadata branch of cargo-travis.

@simeg
Copy link

simeg commented Apr 23, 2020

@roblabla Do you have any updates on this issue? Is the branch you mention in such a state that someone else would be able to pick up and finish the work?

@roblabla
Copy link
Owner

AFAIK it already works. Unfortunately, I'm not really using this project anymore, so there isn't much dogfooding going on.

I'll try taking it for a test run to make sure coverage, coveralls and docs all work. If all works properly I'll release a new version with the fixes.

dbdr pushed a commit to dbdr/robber that referenced this issue May 1, 2020
j-richey added a commit to j-richey/open_ttt_lib that referenced this issue May 31, 2020
The build was using the cargo-travis along with kcov to generate
coverage data and submit it to coveralls. Unfortunately, this stopped
working due to a Rust update (roblabla/cargo-travis#66).
Additionally, it was difficult to run this tool locally.

This commit uses cargo-tarpaulin to generate the test coverage data and
upload it to coveralls. Additionally, developers with Linux can easily
generate coverage reports locally with tarpaulin. The CONTRIBUTING file
is updated with instructions on how to generate coverage reports.

See issue #33.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants