Skip to content

Commit

Permalink
golang: Install go.mod/go.sum by default
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffery To <[email protected]>
  • Loading branch information
jefferyto committed Feb 11, 2019
1 parent a80d54f commit 7dc1f3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lang/golang/golang-package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ include $(GO_INCLUDE_DIR)/golang-values.mk
#
# * Files in any 'testdata' directory
#
# * go.mod and go.sum, in any directory
#
# e.g. GO_PKG_INSTALL_EXTRA:=example.toml marshal_test.toml
#
#
Expand Down Expand Up @@ -155,12 +157,13 @@ define GoPackage/Build/Configure
if [ "$(GO_PKG_INSTALL_ALL)" != 1 ]; then \
code=$$$$(echo "$$$$files" | grep '\.\(c\|cc\|cpp\|go\|h\|hh\|hpp\|proto\|s\)$$$$') ; \
testdata=$$$$(echo "$$$$files" | grep '\(^\|/\)testdata/') ; \
gomod=$$$$(echo "$$$$files" | grep '\(^\|/\)go\.\(mod\|sum\)$$$$') ; \
\
for pattern in $(GO_PKG_INSTALL_EXTRA); do \
extra=$$$$(echo "$$$$extra"; echo "$$$$files" | grep "$$$$pattern") ; \
done ; \
\
files=$$$$(echo "$$$$code"; echo "$$$$testdata"; echo "$$$$extra") ; \
files=$$$$(echo "$$$$code"; echo "$$$$testdata"; echo "$$$$gomod"; echo "$$$$extra") ; \
files=$$$$(echo "$$$$files" | grep -v '^[[:space:]]*$$$$' | sort -u) ; \
fi ; \
\
Expand Down

0 comments on commit 7dc1f3e

Please sign in to comment.