Check for go.mod.
This commit is contained in:
parent
a6d333fbd1
commit
4ce2b54c44
1 changed files with 2 additions and 0 deletions
|
@ -953,6 +953,8 @@ class Golang(BuildSystem):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def probe(cls, path):
|
def probe(cls, path):
|
||||||
|
if os.path.exists(os.path.join(path, 'go.mod')):
|
||||||
|
return Golang(path)
|
||||||
for entry in os.scandir(path):
|
for entry in os.scandir(path):
|
||||||
if entry.name.endswith(".go"):
|
if entry.name.endswith(".go"):
|
||||||
return Golang(path)
|
return Golang(path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue