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

Include non .go file #1731

Closed
Knight1 opened this issue Mar 4, 2018 · 5 comments
Closed

Include non .go file #1731

Knight1 opened this issue Mar 4, 2018 · 5 comments

Comments

@Knight1
Copy link

Knight1 commented Mar 4, 2018

Hey,

i did not found out how I can enforce a non .go file to be included in the vendor/ direcotory. I need a .c and .h file for go build on MacOS and the file is not included in the vendor/ file. Can you help me out how to change this behavior?

shirou/gopsutil#491

[[override]]
  name = "github.com/shirou/gopsutil"
  version = "2.18.1"
@ibrasho
Copy link
Collaborator

ibrasho commented Mar 4, 2018

Can you check if you have any options enabled under [prune] in Gopkg.toml?

@glorieux
Copy link

glorieux commented Mar 7, 2018

I have the exact same error with the following prune options:

[prune]
  go-tests = true
  unused-packages = true

@glorieux
Copy link

glorieux commented Mar 7, 2018

Removing the unused-packages prune option seem to solve the issue.
screen shot 2018-03-07 at 17 04 19

@Knight1
Copy link
Author

Knight1 commented Mar 7, 2018

I managed it with

[prune]
  non-go = true
  go-tests = true
  unused-packages = true

  [[prune.project]]
    name = "github.com/shirou/gopsutil"
    non-go = false
    unused-packages = false

Thanks for directing me to the right doc :)

@satheshshiva
Copy link

Any idea on how to do the same on Go Modules? The html files from the vendor files are getting ignored.

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

4 participants