Skip to content

Commit

Permalink
Merge pull request #24 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 1.1.1
  • Loading branch information
andyone authored Jul 11, 2019
2 parents ad9409a + 733063e commit 345c1e1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions gomakegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
// App info
const (
APP = "gomakegen"
VER = "1.1.0"
VER = "1.1.1"
DESC = "Utility for generating makefiles for Go applications"
)

Expand Down Expand Up @@ -860,16 +860,24 @@ func (m *Makefile) getTestDepsTarget() string {
return ""
}

pkgMngUsed := m.DepUsed || m.GlideUsed || m.ModUsed

result := "deps-test: "

if m.HasStableImports {
result += "git-config "
}

if pkgMngUsed {
result += "deps "
}

result += "## Download dependencies for tests\n"

for _, pkg := range m.TestImports {
result += "\tgo get -d -v " + pkg + "\n"
if !pkgMngUsed {
for _, pkg := range m.TestImports {
result += "\tgo get -d -v " + pkg + "\n"
}
}

return result + "\n"
Expand Down

0 comments on commit 345c1e1

Please sign in to comment.