Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

error: missing field 'description' for key 'package' #95

Closed
dmitris opened this issue Jun 24, 2022 · 4 comments
Closed

error: missing field 'description' for key 'package' #95

dmitris opened this issue Jun 24, 2022 · 4 comments

Comments

@dmitris
Copy link

dmitris commented Jun 24, 2022

When trying to run cargo rpm init, I'm getting the following error:

$ cargo rpm init
error: cargo-rpm fatal error: parse error: missing field `description` for key `package` at line 8 column 1

How is one supposed to provide the description field? Could we add it to the README documentation (or have I missed some doc piece that describes it)? Thanks.

@tony-iqlusion
Copy link
Member

It's looking for a description key in the [package] section of Cargo.toml.

This is a standard attribute of [package]:

https://doc.rust-lang.org/cargo/reference/manifest.html#the-description-field

@dmitris
Copy link
Author

dmitris commented Jun 27, 2022

thanks @tony-iqlusion! Would it be worth to add to the README something like:
to use cargo-rpm, you need to have the packageandlicense attributes in Cargo.toml. See <link> for the additional information. ?

@tony-iqlusion
Copy link
Member

Sure. Feel free to open a PR.

@tony-iqlusion
Copy link
Member

cargo-rpm is unmaintained: #96

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants