title: What are the benefits of having a vendor folder?
body: <p>I can't really grasp the purpose of having a vendor folder. Based on what I learned, it seems the vendor <em>folder</em> is only beneficial if you're trying to make your repo compatible with golang versions earlier than <code>1.11</code>. We are running golang <code>1.12.14</code>.</p>
  
  <p>When I brought this up to my coworker he said:</p>
  
  <blockquote>
    <p>Please use vendor with modules - go doesn't have a global artifactory. this is, currently, the best option to make sure you have hermetic builds and your code doesn't break when somebody changes something in their repo.</p>
  </blockquote>
  
  <p>I thought this is what Go modules does? I asked this question and a commenter is saying I shouldn't use vendor? <a href="https://stackoverflow.com/questions/61531189/does-it-make-sense-to-add-go-mod-vendor-to-a-pre-commit-hook?noredirect=1#comment108855930_61531189">Does it make sense to add `go mod vendor` to a pre-commit hook?</a></p>