From 27fbbf283f88b10c7e614f437db3ebed46231d87 Mon Sep 17 00:00:00 2001 From: Aiden Scandella Date: Thu, 11 May 2017 00:01:17 -0700 Subject: [PATCH] Fix header and test import --- internal/gps/_testdata/src/dotgodir/foo.go/foo.go | 9 +++++++++ internal/gps/pkgtree/pkgtree_test.go | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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"}, }, }, },