From 7519b265b8b9a1a7c04a684babe1474770856c93 Mon Sep 17 00:00:00 2001 From: Mark D Horn Date: Fri, 30 Jul 2021 13:30:54 -0700 Subject: [PATCH] golang: support both Makefile and makefile Found a go project that uses makefile and it was missed and the wrong build process was being used. Signed-off-by: Mark D Horn --- autospec/buildreq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autospec/buildreq.py b/autospec/buildreq.py index 91ce22b7..0cd4197b 100644 --- a/autospec/buildreq.py +++ b/autospec/buildreq.py @@ -802,7 +802,7 @@ def scan_for_configure(self, dirn, tname, config): config.set_build_pattern("golang", default_score) if "go.mod" in files: - if "Makefile" not in files: + if "Makefile" not in files and "makefile" not in files: # Go packages usually have make build systems so far # so only use go directly if we can't find a Makefile config.set_build_pattern("golang", default_score)