Closed matchai closed 5 years ago
🐟 spacefish-bot — Pull request copied from: https://github.com/denysdovhan/spaceship-prompt/pull/617.
Make package section support cargo package manager.
If there is a missing field version in Cargo.toml, the following error occur:
version
error: failed to parse manifest at `/path/to/Cargo.toml` Caused by: missing field `version` for key `package`
Currently, we use cargo pkgid.
cargo pkgid
$ cargo pkgid > file:///path/to/tokio-rs/tokio#0.1.14
But it depends on cargo.lock. So we need handle the following error:
cargo.lock
error: a Cargo.lock must exist for this command
If you work on a rust package, you almost have a cargo.lock in package root directory except you just only clone a package without any work.
:tada: This issue has been resolved in version 2.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Description
Make package section support cargo package manager.
If there is a missing field
version
in Cargo.toml, the following error occur:Currently, we use
cargo pkgid
.But it depends on
cargo.lock
. So we need handle the following error:If you work on a rust package, you almost have a cargo.lock in package root directory except you just only clone a package without any work.
Screenshot