diff --git a/imports.go b/imports.go index 418b3ce..0e97067 100644 --- a/imports.go +++ b/imports.go @@ -145,6 +145,11 @@ func filterPackages(packages []string) []string { } func ensureDependenciesExist(packages []string, includeTestDeps bool) error { + packages = filterPackages(packages) + if len(packages) <= 0 { + return nil + } + args := []string{"get", "-d"} // -d for download only if includeTestDeps {