Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Prune should remove contents of root package directory when only subpackages are used #1113

@kevinburke

Description

@kevinburke

What version of dep are you using (dep version)?

v0.1.0-585-g34835a5

What dep command did you run?

dep init; dep ensure; dep prune.

I've set up a test repository with the results here: https://github.com/kevinburke/dep-test-bson

What did you expect to see?

I expected the vendor directory to have the following contents (and only the following contents)

vendor/gopkg.in/mgo.v2/bson/*
vendor/gopkg.in/mgo.v2/internal/json/*

What did you see instead?

I see all of the files and contents in the gopkg.in/mgo.v2 package as well:

$ ll vendor/gopkg.in/mgo.v2
total 1104
drwxr-xr-x  33 kevin  staff   1.1K Sep  1 13:27 .
drwxr-xr-x   3 kevin  staff   102B Sep  1 13:27 ..
-rw-r--r--   1 kevin  staff   1.0K Sep  1 13:27 .travis.yml
-rw-r--r--   1 kevin  staff   1.3K Sep  1 13:27 LICENSE
-rw-r--r--   1 kevin  staff    67B Sep  1 13:27 Makefile
-rw-r--r--   1 kevin  staff   136B Sep  1 13:27 README.md
-rw-r--r--   1 kevin  staff    12K Sep  1 13:27 auth.go
-rw-r--r--   1 kevin  staff    31K Sep  1 13:27 auth_test.go
drwxr-xr-x  12 kevin  staff   408B Sep  1 13:27 bson
-rw-r--r--   1 kevin  staff   9.8K Sep  1 13:27 bulk.go
-rw-r--r--   1 kevin  staff    14K Sep  1 13:27 bulk_test.go
-rw-r--r--   1 kevin  staff    19K Sep  1 13:27 cluster.go
-rw-r--r--   1 kevin  staff    54K Sep  1 13:27 cluster_test.go
-rw-r--r--   1 kevin  staff   1.2K Sep  1 13:27 doc.go
-rw-r--r--   1 kevin  staff   586B Sep  1 13:27 export_test.go
-rw-r--r--   1 kevin  staff    21K Sep  1 13:27 gridfs.go
-rw-r--r--   1 kevin  staff    16K Sep  1 13:27 gridfs_test.go
drwxr-xr-x   3 kevin  staff   102B Sep  1 13:27 internal
-rw-r--r--   1 kevin  staff   3.8K Sep  1 13:27 log.go
-rw-r--r--   1 kevin  staff   2.8K Sep  1 13:27 queue.go
-rw-r--r--   1 kevin  staff   2.7K Sep  1 13:27 queue_test.go
-rw-r--r--   1 kevin  staff    57B Sep  1 13:27 raceoff.go
-rw-r--r--   1 kevin  staff    55B Sep  1 13:27 raceon.go
-rw-r--r--   1 kevin  staff   224B Sep  1 13:27 saslimpl.go
-rw-r--r--   1 kevin  staff   194B Sep  1 13:27 saslstub.go
-rw-r--r--   1 kevin  staff    12K Sep  1 13:27 server.go
-rw-r--r--   1 kevin  staff   145K Sep  1 13:27 session.go
-rw-r--r--   1 kevin  staff   103K Sep  1 13:27 session_test.go
-rw-r--r--   1 kevin  staff    18K Sep  1 13:27 socket.go
-rw-r--r--   1 kevin  staff   3.4K Sep  1 13:27 stats.go
-rw-r--r--   1 kevin  staff   5.9K Sep  1 13:27 suite_test.go
-rw-r--r--   1 kevin  staff   218B Sep  1 13:27 syscall_test.go
-rw-r--r--   1 kevin  staff   181B Sep  1 13:27 syscall_windows_test.go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions