From 4ce2b54c44b32af30e11e40e989e3baae08558cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sat, 20 Mar 2021 00:50:02 +0000 Subject: [PATCH] Check for go.mod. --- ognibuild/buildsystem.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ognibuild/buildsystem.py b/ognibuild/buildsystem.py index 5657eed..f42b8a2 100644 --- a/ognibuild/buildsystem.py +++ b/ognibuild/buildsystem.py @@ -953,6 +953,8 @@ class Golang(BuildSystem): @classmethod def probe(cls, path): + if os.path.exists(os.path.join(path, 'go.mod')): + return Golang(path) for entry in os.scandir(path): if entry.name.endswith(".go"): return Golang(path)