-
-
Notifications
You must be signed in to change notification settings - Fork 783
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
releaseDate
incorrectly overridden by latest.py
#2154
Comments
Any suggestions on how to catch for this? Two suggestions:
Since the YAML spec calls for ISO8601, I thought of using the yaml.load("date: 2022-01-01")['date'].__class__
<class 'datetime.date'>
yaml.load("date: 2022-01-01Z")['date'].__class__
<class 'str'>
""" Same results with ruamel
YAML().load("date: 2022-01-01Z")['date'].__class__
<class 'str'>
YAML().load("date: 2022-01-01")['date'].__class__
<class 'datetime.date'> Had filed an issue for pyyaml here irb(main):005:0> YAML.unsafe_load("date: 2022-01-01")
=> {"date"=>#<Date: 2022-01-01 ((2459581j,0s,0n),+0s,-Infj)>}
irb(main):006:0> YAML.unsafe_load("date: 2022-01-01Z")
=> {"date"=>"2022-01-01Z"} Maybe a separate
|
We could support |
The simpler solution would be to ignore the |
We could add a |
It could be a solution, but I do not like it. Let's see if we can make things better just by introducing a new rule such as :
We also could inject missing versions on release-data side ? For example by adding more configuration in the
|
Used the |
latest.py
incorrectly overridesreleaseDate
to the first known version of the cycle, even if this first release is not ax.y.0
. Maybe there are some cases where it is useful, but usually it is wrong.This issue has bee seen on :
931657b
toe0dbbc1
#2151 (comment)dfc7b98
to1878c6e
#2146 (comment)75a54c4
to05ea763
#2129 (comment)The text was updated successfully, but these errors were encountered: