mmstick / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
615 stars 50 forks source link

Version string gets mangled #103

Closed vorner closed 5 years ago

vorner commented 5 years ago

Hello

I have a project with version string containing a dash, eg version = "0.1.18-53" in the Cargo.toml. However, the package name I get from it is name_0.1.18~53_arch.deb. Is there a particular reason why my dash gets changed? It's causing confusion in our internal system that expects dashes :-(.

I'm using cargo-deb 1.20.

Thank you

kornelski commented 5 years ago

That was https://github.com/mmstick/cargo-deb/pull/102

vorner commented 5 years ago

Hmm. But we don't use the dash in the semver meaning, it's a build number. Is there a way to opt out of this and tell cargo deb to keep it as it is?

kornelski commented 5 years ago

--deb-version command line flag is currently the way to opt out

kornelski commented 5 years ago

Also you can use revision in Cargo.toml to add a number to the version

version = "0.1.18"
…
revision = "53"
kornelski commented 5 years ago

I've made it accept numeric suffixes as-is

vorner commented 5 years ago

Thank you, yes indeed this works.