Skip to content

Commit

Permalink
Ensure the specified argument is a Go package import path.
Browse files Browse the repository at this point in the history
fixes #72
  • Loading branch information
stapelberg committed Oct 24, 2017
1 parent c930d6e commit b18c3db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions make.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,12 @@ func main() {
}

gopkg := flag.Arg(0)

// Ensure the specified argument is a Go package import path.
if _, err := vcs.RepoRootForImportPath(gopkg, false); err != nil {
log.Fatalf("Verifying arguments: %v — did you specify a Go package import path?", err)
}

debsrc := debianNameFromGopkg(gopkg, "library")

if strings.TrimSpace(*pkgType) != "" {
Expand Down

0 comments on commit b18c3db

Please sign in to comment.