apache / mynewt-newt

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
117 stars 96 forks source link

'newt info' should prefer tagged versions instead of master #526

Closed sjanc closed 5 months ago

sjanc commented 1 year ago

newt info should prefer "latest" release version instead of ones that match master branch. Below is newt info for 1.11 release where release tags are stil matching tip of master branches.

I'd expect core and nimble be shown and 1.11.0 and 1.6.0 instead of 0.0.0

[janc@ix test]$ newt info Apache Newt 1.11.0 / 2215fc6 / 2023-08-11_11:31 Repository info:

sjanc commented 1 year ago

OK, so this seems to work OK when final tags (without _rc1) are in place

[janc@ix test]$ newt info Apache Newt 1.11.0 / 2215fc6 / 2023-08-11_11:31 Repository info:

But 'newt new test' shows rc tags even if final tag is present. n[janc@ix ttt]$ newt new test Downloading project skeleton from apache/mynewt-blinky... Downloading repository mynewt-blinky (commit: master) from https://github.com/apache/mynewt-blinky.git Installing skeleton in test (commit: mynewt_1_11_0_rc1_tag) Project test successfully created.