jolly-midnight-72759
12/14/2020, 2:08 PMwitty-crayon-22786
12/14/2020, 5:34 PMwitty-crayon-22786
12/14/2020, 5:34 PMjolly-midnight-72759
12/14/2020, 5:48 PM./pants --version
return the latest version available. So if I have 2.0.1
configured. Then when I run ./pants --version
it would return
2.0.1
Note: v2.1.0 is the latest stable release (<https://www.pantsbuild.org/docs/versions>)
jolly-midnight-72759
12/14/2020, 5:48 PMwitty-crayon-22786
12/14/2020, 5:49 PMjolly-midnight-72759
12/14/2020, 5:49 PMjolly-midnight-72759
12/14/2020, 5:50 PMjolly-midnight-72759
12/14/2020, 5:51 PMjolly-midnight-72759
12/14/2020, 6:30 PMcurl -sG -H 'Host: <http://pypi.org|pypi.org>' -H 'Accept: application/json' <https://pypi.org/pypi/pantsbuild.pants/json> | jq ".urls"
seems the most reliable way to get the "latest" version. Of course it can never be as simple as | jq ".latest_version"
.jolly-midnight-72759
12/14/2020, 6:38 PMhttps <http://pypi.org/pypi/pantsbuild.pants/json|pypi.org/pypi/pantsbuild.pants/json> | jq -r ".urls[0].filename" | awk -F'-' '{print $2}'
(using httpie) will give the "latest version".witty-crayon-22786
12/16/2020, 7:35 PMjolly-midnight-72759
12/16/2020, 7:55 PM