Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
charm proof needs min-juju-version support #141
Comments
|
validation should be any version number that is |
marcoceppi
added this to the 2.0 milestone
Mar 21, 2016
marcoceppi
added
the
charm-proof
label
Mar 21, 2016
|
Note that versions such as "2.0.1-beta3" should also be acceptable. |
|
should they? |
natefinch
commented
Mar 21, 2016
|
Yes, juju-min-version is parsed using our standard version parsing library, so supports stuff like build tags of beta3, which get compared lexicographically. The full code is here for parsing: https://github.com/juju/version/blob/master/version.go#L150 and here for comparison: https://github.com/juju/version/blob/master/version.go#L193 That code should be pretty trivial to convert to python, if needed. |
|
bleh, okay so Valid
Invalid
Does this seem correct? |
tvansteenburgh
self-assigned this
Mar 21, 2016
|
Reading the code link that @natefinch provided @marcoceppi it appears your 3rd case is not valid. 2.10.beta1.2 appears to be the format the code is looking for. Correct me if I am wrong on that read. |
|
It seems we just need this:
From version.go#L104 |
ryan-beisner commentedMar 21, 2016
Please add min-juju-version support to charm proof in preparation for the feature landing. This will allow us to add the metadata to development versions of charms and pass proof. TIA