-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
chore(version) Remove const_format dependency #13504
base: main
Are you sure you want to change the base?
chore(version) Remove const_format dependency #13504
Conversation
hello @DaniPopes , can you help me review this PR ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good,
let's also remove the const_format dep now?
few notes
|
@DaniPopes tks, i updated the code regarding your comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pending @DaniPopes
@@ -22,10 +22,68 @@ fn main() -> Result<(), Box<dyn Error>> { | |||
// if not on a tag: v0.2.0-beta.3-82-g1939939b | |||
// if on a tag: v0.2.0-beta.3 | |||
let not_on_tag = env::var("VERGEN_GIT_DESCRIBE")?.ends_with(&format!("-g{sha_short}")); | |||
let is_dev = is_dirty || not_on_tag; | |||
println!("cargo:rustc-env=RETH_VERSION_SUFFIX={}", if is_dev { "-dev" } else { "" }); | |||
let version_suffix = if is_dirty || not_on_tag { "-dev" } else { "" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated, I noticed that some docker builds have a -dev suffix, which doesn't make sense, so I think this is kinda wrong
wouldn't be opposed to removing this entirely @onbjerg
Closes #13496