davidsowerby / kaytee-plugin

0 stars 0 forks source link

Reverse order of tag checking #16

Closed davidsowerby closed 7 years ago

davidsowerby commented 7 years ago

It is usually the most recent tags being sought

checking tag with name: 0.1.1 checking tag with name: 0.1.5.5 checking tag with name: 0.2.0.7 checking tag with name: 0.2.1.8 checking tag with name: 0.3.0.9 checking tag with name: 0.3.1.10 checking tag with name: 0.4.0.11 checking tag with name: 0.5.0.12 checking tag with name: 0.6.1.14 checking tag with name: 0.7.0.16 checking tag with name: 0.7.1.17 checking tag with name: 0.7.10.26 checking tag with name: 0.7.16.32 checking tag with name: 0.7.2.18 checking tag with name: 0.7.3.19 checking tag with name: 0.7.5.21 checking tag with name: 0.8.0.41

davidsowerby commented 7 years ago

Tags would have to be sorted by date in order for this to work, as they are returned in alphabetical order

There may be some performance benefit to doing so for very long lists of tags, but in most cases it is probably just quicker to iterate through the list

Version checking (the purpose of iterating through the tags) might later be done against a central repository, but this issue closed as being of dubious value