Dep: Include non .go file

Created on 4 Mar 2018  路  5Comments  路  Source: golang/dep

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?

https://github.com/shirou/gopsutil/issues/491

[[override]]
  name = "github.com/shirou/gopsutil"
  version = "2.18.1"

Most helpful comment

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 :)

All 5 comments

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

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

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

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

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 :)

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abeMedia picture abeMedia  路  3Comments

rustyx picture rustyx  路  3Comments

carolynvs picture carolynvs  路  3Comments

deejross picture deejross  路  3Comments

tapir picture tapir  路  3Comments