Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
6a2bedb6
Commit
6a2bedb6
authored
Aug 03, 2015
by
Chris Bednarski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2548 from mitchellh/makefile
Use go vet instead of go tool vet, and actually run it with make
parents
07eff4c0
e73ec1f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Makefile
Makefile
+3
-5
No files found.
Makefile
View file @
6a2bedb6
TEST
?=
./...
VETARGS
?=
-asmdecl
-atomic
-bool
-buildtags
-copylocks
-methods
\
-nilfunc
-printf
-rangeloops
-shift
-structtags
-unsafeptr
default
:
test
default
:
test
vet dev
bin
:
@
sh
-c
"
$(CURDIR)
/scripts/build.sh"
...
...
@@ -41,10 +39,10 @@ updatedeps:
| xargs go get
-f
-u
-v
vet
:
@
go
tool
vet 2>/dev/null
;
if
[
$$
?
-eq
3
]
;
then
\
@
go vet 2>/dev/null
;
if
[
$$
?
-eq
3
]
;
then
\
go get golang.org/x/tools/cmd/vet
;
\
fi
@
go
tool vet
$(VETARGS)
.
;
if
[
$$
?
-eq
1
]
;
then
\
@
go
vet ./..
.
;
if
[
$$
?
-eq
1
]
;
then
\
echo
""
;
\
echo
"Vet found suspicious constructs. Please check the reported constructs"
;
\
echo
"and fix them if necessary before submitting the code for reviewal."
;
\
...
...
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