-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
version 2.8.0 - printing wrong version #65
Comments
Oh sh. And I know I'll fall into this one again, the project's structure is too painful... |
Where is the version of a cli set in a rust project? When you build it or in the code? |
For most projects, everything is built from one Cargo.toml version. But for dysk, in order to be able to automatically build a man page, I had to split it with most of the code in a sub project. It means I have to set the version at 4 places (in 2 Cargo.toml files). I'll probably need to set up something like a git hook to check they're equal... |
In retrospect, the automatic man page wasn't worth the pain |
This should be fixed at most places now (not when you use crates.io, ie Please don't close the issue, I need to set up a reliable solution to avoid this problem on next deploys. |
That weird haha. |
Yeah. If you find a cleaner way to generate the man page, it's welcome |
What about using environment variables during the build process to inject the version information? in Cargo.toml
Use Environment Variables
Can you then build it with cargo like this?
|
@daniejstriata The Cargo.toml file is used in all kind of processes and tools, it should stay correct. I should rather look for another man page generator when I have some free time. |
That makes sense. Thanks. |
Hint for bored FOSS authors: there's some market for a convenient man page generator for rust projects ;) |
The
--version
output is still 2.7.2 instead of 2.8.0.The text was updated successfully, but these errors were encountered: