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

dep doesn't pull the whole cgo repo, main dynamic lib (so) is not being pulled #1823

Closed
chespinoza opened this issue Apr 22, 2018 · 4 comments

Comments

@chespinoza
Copy link

Hi, I have a C library wrapper and dep is not getting the dynamic library (so file) on which the wrapper is based, the folder is being pulled and even the symlinks but not the C lib

Thanks in advance.

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

v0.4.1-145-gd5c4d78

What dep command did you run?

dep ensure -update -v

Root project is "github.com/chespinoza/zenroom-test"
 1 transitively valid internal packages
 1 external packages imported from 1 projects
(0)   ✓ select (root)
(1)	? attempt github.com/thingful/zenroom-go with 1 pkgs; 2 versions to try
(1)	    try github.com/thingful/zenroom-go@master
(2)	✗   github.com/thingful/zenroom-go@master not allowed by constraint devel:
(2)	    devel from (root)
(1)	    try github.com/thingful/zenroom-go@devel
(1)	✓ select github.com/thingful/zenroom-go@devel w/1 pkgs
  ✓ found solution with 1 packages from 1 projects

Solver wall times by segment:
      b-list-pkgs: 561.600697ms
  b-list-versions: 551.630598ms
           b-gmal:  23.345517ms
  b-source-exists:   2.560917ms
         new-atom:     65.307µs
          satisfy:     48.789µs
      select-root:     34.587µs
      select-atom:      24.26µs
        b-matches:      5.532µs
            other:      5.122µs
       b-pair-rev:      3.005µs
   b-pair-version:        887ns

  TOTAL: 1.139325218s

dep hash-inputs

-CONSTRAINTS-
github.com/thingful/zenroom-go
b-devel
-IMPORTS/REQS-
github.com/thingful/zenroom-go
-IGNORES-
-OVERRIDES-
-ANALYZER-
dep
1

What did you expect to see?

I expect that dep pull the whole github repo without exclude any file

What did you see instead?

in the package folder the lib sub folder doesn't have the shared lib used by CGO
named libzenroom-x86_64-0.5.0-shared-lib-9f03887.so which exists in the original repo

@mattayes
Copy link
Contributor

Hey @chespinoza, what do your [[prune]] settings in Gopkg.toml look like? If you've set non-go = True that may explain it. If not, I recommend asking the golang-nuts mailing list or the Gopher Slack #vendor channel. They can help with general questions like this. If you need an invite to the Slack channel, you can fill out this form.

@chespinoza
Copy link
Author

@mattayes seems that my problem is the same of #1306 is referring isn't?

@mattayes
Copy link
Contributor

@chespinoza Good find! Yes, these issues are the same. Here's a more detailed version of my answer above.

Can you close this issue, since it's a duplicate?

@mattayes
Copy link
Contributor

mattayes commented May 5, 2018

@carolynvs this can be closed!

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

3 participants