0

I'm about to setup a new project in Go. I came across the term vendoring. Is this standard or an obsolete concept. I'm coming from a nodejs world and this feels like copying the nod_modules folder to a separate directory or am I confusing the whole purpose of this?

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
pandith padaya
  • 1,643
  • 1
  • 10
  • 20
  • 2
    Vendoring is not obsolete. It is a useful technique for a certain cases. But note that vendoring _never_ was ought to be _the_ solution to dependency management. It had, has and will have its niche. – Volker Aug 25 '20 at 07:54
  • thanks, for this, can you give me a such a niche scenario, just want to be aware when I should be using this approach. – pandith padaya Aug 25 '20 at 21:42
  • If you cannot use Go modules, e.g. because you have not network connectivity during build. If your background is NodeJS: Do not use vendoring. – Volker Aug 26 '20 at 04:10

1 Answers1

5

It's not technically obsolete, but most cases should use go modules instead.

Marc
  • 19,394
  • 6
  • 47
  • 51