golang / dep

Go dependency management tool experiment (deprecated)
https://golang.github.io/dep/
BSD 3-Clause "New" or "Revised" License
12.85k stars 1.05k forks source link

dep found dependency in the `node_modules` #2128

Closed taraspos closed 5 years ago

taraspos commented 5 years ago

I'm developing AWS Lambda in Golang and using serverless/serverless for the deployment. However, after running dep init I found a dependency that I'm not using github.com/fnproject/fdk-go.

Greping the project directory shows that serverless tool has the project templates stored in the node_modules and dep considered that as a dependency:

$ grep -r "fdk" *
...
node_modules/serverless/lib/plugins/create/templates/fn-go/hello/func.go:   fdk "github.com/fnproject/fdk-go"
...

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

v0.5.1

What dep command did you run?

dep init

kevinburke commented 5 years ago

Hey! You should be able to use this to ignore package paths - I'd suggest using it in this case. https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md#ignored