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

dep: WARNING: Unknown field in manifest: prune #1442

Closed
rohanbhattacharjee opened this issue Dec 8, 2017 · 5 comments
Closed

dep: WARNING: Unknown field in manifest: prune #1442

rohanbhattacharjee opened this issue Dec 8, 2017 · 5 comments

Comments

@rohanbhattacharjee
Copy link

rohanbhattacharjee commented Dec 8, 2017

Dep version:

dep:
version : v0.3.2
build date : 2017-10-19
git hash : 8ddfc8a
go version : go1.9
go compiler : gc
platform : darwin/amd64

What command did I execute

I executed the dep command - dep ensure.
I want to reduce the size of the vendor directory, hence I added the following snippet to my Gopkg.toml -

[prune]
    go-tests = true

What did you expect to see?

Delete all files with the suffix *_test.go from the vendor directory.

What did you see instead?

dep: WARNING: Unknown field in manifest: prune

@ChrisHines
Copy link
Contributor

ChrisHines commented Dec 9, 2017

The [prune] feature is not available in dep v0.3.2. It is still under development. See #944 and #1219.

@carolynvs
Copy link
Collaborator

Sorry about the confusion! I merged the doc for the new prune options but we haven’t cut a new release yet... 😅 Hopefully this will be easier once we have our versioned doc site up.

@rohanbhattacharjee
Copy link
Author

Thanks for this info. Yeah, I got the info from the doc, and that misled me.

I will keep an eye out for #1219. Looks like it's under active development and review. We will likely be an early customer of this feature.

Thanks
Rohan

@ying2025
Copy link

ying2025 commented May 31, 2018

dep version
dep:
version : devel
build date :
git hash :
go version : go1.8.3
go compiler : gc
platform : linux/amd64

dep: WARNING: Unknown field in manifest: prune
ensure Solve(): No versions of github.com/ebuchman/fail-test met constraints:
master: unable to update repository: : command failed: [git fetch --tags --prune origin]: exit status 255
master: unable to update repository: : command failed: [git fetch --tags --prune origin]: exit status 255

I have the similiar problem with you. What should I do ?

@sdboyer
Copy link
Member

sdboyer commented Jun 8, 2018

@ying2025 update your version of dep, preferably to a released version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants