Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Commit

Permalink
remove deps target in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitris committed Apr 29, 2020
1 parent af26fd5 commit 54a9975
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
24 changes: 9 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,44 +1,38 @@

# This Makefile is adopted from https://github.com/hashicorp/consul/blob/master/Makefile
# This Makefile is adopted from https://github.com/hashicorp/consul/blob/master/Makefile

DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)

PACKAGES = $(shell go list ./...)
VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods \
-nilfunc -rangeloops -shift -structtags -unsafeptr
#-printf
#-printf

all: deps format build
all: format build

cov:
gocov test | gocov-html > /tmp/coverage.html
open /tmp/coverage.html

deps:
go get -d -v ./... $(DEPS)

updatedeps: deps
go get -d -f -u ./... $(DEPS)

build: test
cd cmd/gryffin-standalone; go install
cd cmd/gryffin-standalone; go build

test: deps
test:
go test ./...
@$(MAKE) vet

test-mono:
test-mono:
go run cmd/gryffin-standalone/main.go "http://127.0.0.1:8081"
go run cmd/gryffin-standalone/main.go "http://127.0.0.1:8082/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit"


test-integration:
INTEGRATION=1 go test ./...

test-cover: deps
test-cover:
go test --cover ./...

format: deps
format:
@go fmt $(PACKAGES)

vet:
Expand All @@ -51,4 +45,4 @@ vet:
echo "and fix them if necessary before submitting the code for reviewal."; \
fi

.PHONY: all cov deps build test vet web web-push
.PHONY: all cov build test vet web web-push
3 changes: 0 additions & 3 deletions gryffin.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"fmt"
"hash/fnv"
"io/ioutil"
"log"
"net"
"net/http"
"net/http/cookiejar"
Expand Down Expand Up @@ -242,8 +241,6 @@ func (s *Scan) ReadResponseBody() {
if b, err := ioutil.ReadAll(s.Response.Body); err == nil {
s.ResponseBody = string(b)
s.Response.Body = ioutil.NopCloser(bytes.NewReader(b))
} else {
log.Printf("ReadResponseBody: err=%v", err)
}
}
}
Expand Down

0 comments on commit 54a9975

Please sign in to comment.