Version refactor#307
Conversation
| indent!(indent), | ||
| def.package, | ||
| if !def.version.is_latest() { format!("<{}>", def.version) } else { String::new() }, | ||
| // FIXME: Removed latest alias |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
| "{}{}::{}", | ||
| def.package, | ||
| if !def.version.is_latest() { format!("<{}>", def.version) } else { String::new() }, | ||
| // FIXME:: Removed latest |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
| indent!(indent), | ||
| t.package_name, | ||
| if !t.package_version.is_latest() { format!("<{}>", t.package_version) } else { String::new() }, | ||
| // FIXME: Removed latest |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
| } else { | ||
| String::new() | ||
| } | ||
| // FIXME: Unnecessary unwrap (probably) |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
| "{}{}::{}", | ||
| task.package_name, | ||
| if !task.package_version.is_latest() { format!("<{}>", task.package_version) } else { String::new() }, | ||
| // FIXME: Removed latest |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Lut99
left a comment
There was a problem hiding this comment.
I'm sorry my man >.< not fun work! I've left a few comments with questions, and yeah, I'm also confused half of the time haha. Check them out, see what you think and let me know if you want to review me again (or merge when confident you've handled them all!)
8bdbd0e to
c8d4cb6
Compare
de65457 to
688a219
Compare
a87baf5 to
a336eac
Compare
Lut99
left a comment
There was a problem hiding this comment.
Phew what a lot of work!
I left a couple of points for you to consider, but I think in general, I trust that this will work. And else we won't learn until we run it, anyway. So I'd say merge.
a336eac to
67a7948
Compare
This refactor removes the homegrown Version struct and replaces it with the semver crate. Moreover, we split versions into three different versions.
BraneVersion, version numbers with respect to Brane. It is a bit unclear how we should go about the nightly and latest aliases.
AliasPackageVersion, supports semver version or the "latest" alias
ConcretePackageVersion, is a type alias for the semver crate. This could be replaced with a newtype if we so desire.
The advantage for this distinction is that an API can make clear wheter or not it accepts aliases like latest.