Skip to content

Commit

Permalink
Only return source of main package
Browse files Browse the repository at this point in the history
  • Loading branch information
dave committed Jun 16, 2018
1 parent 6f35a65 commit 1b2b50e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/frizz/packages.go
Expand Up @@ -78,6 +78,10 @@ func (h *Handler) Packages(ctx context.Context, info messages.GetPackages, req *
g := get.New(s, send, gitreq)

g.Callback = func(path string, files map[string]string, standard bool) error {
if path != info.Path {
// only return source for main package (not all dependencies)
return nil
}
if done[path] {
return nil
}
Expand Down

0 comments on commit 1b2b50e

Please sign in to comment.