Check for go.sum.

This commit is contained in:
Jelmer Vernooij 2021-03-22 15:53:46 +00:00
parent 02177527c3
commit dfd18e07aa

View file

@ -1009,6 +1009,8 @@ class Golang(BuildSystem):
def probe(cls, path):
if os.path.exists(os.path.join(path, 'go.mod')):
return Golang(path)
if os.path.exists(os.path.join(path, 'go.sum')):
return Golang(path)
for entry in os.scandir(path):
if entry.name.endswith(".go"):
return Golang(path)