Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
ae4cad3f
Commit
ae4cad3f
authored
Jun 01, 2017
by
zramsay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: use correct location for [test_go_megacheck]
License: MIT Signed-off-by:
Zach Ramsay
<
zach.ramsay@gmail.com
>
parent
0b584587
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Rules.mk
Rules.mk
+1
-7
mk/golang.mk
mk/golang.mk
+6
-0
No files found.
Rules.mk
View file @
ae4cad3f
...
...
@@ -66,13 +66,6 @@ include $(dir)/Rules.mk
# -------------------- #
# core targets #
# -------------------- #
PACKAGES_NOVENDOR
:=
$(
shell
go list github.com/ipfs/go-ipfs/... |
grep
-v
/Godeps/
)
megacheck
:
@
go get honnef.co/go/tools/cmd/megacheck
@
for
pkg
in
${PACKAGES_NOVENDOR}
;
do
megacheck
"
$$
pkg"
;
done
.PHONY
:
megacheck
build
:
$(TGT_BIN)
.PHONY
:
build
...
...
@@ -149,6 +142,7 @@ help:
@
echo
' test_go_short'
@
echo
' test_go_expensive'
@
echo
' test_go_race'
@
echo
' test_go_megacheck'
- Run the
`
megacheck
`
vetting tool
@
echo
' test_sharness_short'
@
echo
' test_sharness_expensive'
@
echo
' test_sharness_race'
...
...
mk/golang.mk
View file @
ae4cad3f
...
...
@@ -13,6 +13,7 @@ CHECK_GO :=
go-pkg-name
=
$(
shell
go list
$
(
go-tags
)
github.com/ipfs/go-ipfs/
$(1)
)
go-main-name
=
$(
notdir
$(
call
go-pkg-name,
$(1)
))
$
(
?exe
)
go-curr-pkg-tgt
=
$(d)
/
$(
call
go-main-name,
$(d)
)
go-pkgs-novendor
=
$(
shell
go list github.com/ipfs/go-ipfs/... |
grep
-v
/Godeps/
)
go-tags
=
$(
if
$(GOTAGS)
,
-tags
=
"
$(
call
join-with,
$(space)
,
$(GOTAGS)
)
"
)
go-flags-with-tags
=
$(GOFLAGS)
$
(
go-tags
)
...
...
@@ -39,6 +40,11 @@ test_go_fmt:
.PHONY
:
test_go_fmt
TEST_GO
+=
test_go_fmt
test_go_megacheck
:
@
go get honnef.co/go/tools/cmd/megacheck
@
for
pkg
in
$
(
go-pkgs-novendor
)
;
do
megacheck
"
$$
pkg"
;
done
.PHONY
:
megacheck
test_go
:
$(TEST_GO)
check_go_version
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment