mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 03:56:24 +08:00
TeamCity: select latest patch version of go for mac builds (#2363)
Also adds a disabled tip builder for the next-version support branch.
This commit is contained in:
committed by
GitHub
parent
2e80b32c41
commit
5534839ff7
11
_scripts/latestver.py
Normal file
11
_scripts/latestver.py
Normal file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/python
|
||||
import json
|
||||
import urllib
|
||||
import sys
|
||||
|
||||
ver = sys.argv[1]
|
||||
d = json.loads(urllib.urlopen('https://golang.org/dl/?mode=json&include=all').read())
|
||||
for x in d:
|
||||
if x['version'][:len(ver)] == ver:
|
||||
print x['version']
|
||||
exit(0)
|
||||
Reference in New Issue
Block a user