Check for go.sum.
This commit is contained in:
parent
02177527c3
commit
dfd18e07aa
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue