Skip to content

Commit

Permalink
golang: support both Makefile and makefile
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mdhorn authored and phmccarty committed Jul 30, 2021
1 parent 24c3412 commit 7519b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autospec/buildreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7519b26

Please sign in to comment.