cat-in-136 / cargo-generate-rpm

Cargo helper command to generate a binary RPM package
MIT License
92 stars 19 forks source link

Unable to use custom rpm package version #45

Closed zkolpet closed 1 year ago

zkolpet commented 1 year ago

We have custom package version format, for example: 3.0.A.1 ...when adding this version into Cargo.toml version field:

[package] version = "3.0.A.1"

this will fail with:

Caused by: unexpected character 'A' while parsing patch version number for key package.version

The same is happening when building DEBIAN package with cargo-deb BUT cargo-deb has special option that can be used to pass in any custom version:

cargo deb --deb-version 3.0.A.1 # this one works for DEBIAN packages

Could you please create a workaround for this, so any custom version format can be used, perhaps similar behavior (cmdline option) as cargo-deb tool has?

Thank you very much

zkolpet commented 1 year ago

Just found out that putting field: version = "3.0.A.1" into section [package.metadata.generate-rpm] works.

Closing this.