diff --git a/internal/gps/_testdata/src/dotgodir/foo.go/foo.go b/internal/gps/_testdata/src/dotgodir/foo.go/foo.go index eef38b192c..1de8b0ab15 100644 --- a/internal/gps/_testdata/src/dotgodir/foo.go/foo.go +++ b/internal/gps/_testdata/src/dotgodir/foo.go/foo.go @@ -1,3 +1,12 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package foo +import "sort" + +var _ = sort.Strings + // yes, this is dumb, don't use ".go" in your directory names +// See https://github.com/golang/dep/issues/550 for more information diff --git a/internal/gps/pkgtree/pkgtree_test.go b/internal/gps/pkgtree/pkgtree_test.go index d9112df09b..9371900079 100644 --- a/internal/gps/pkgtree/pkgtree_test.go +++ b/internal/gps/pkgtree/pkgtree_test.go @@ -1296,7 +1296,7 @@ func TestListPackages(t *testing.T) { P: Package{ ImportPath: "dotgodir/foo.go", Name: "foo", - Imports: []string{}, + Imports: []string{"sort"}, }, }, },