Is it best-practice to commit the `vendor` directory?

后端 未结 3 424
栀梦
栀梦 2020-12-17 08:34

I am using dep to handle my Go dependencies. Is it best practice to also commit the vendor directory into version control? Or is best practice to a

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-17 09:18

    imagine what would happen to your project if a dependency was taken offline by the author. Until Go has a central server to hold all packages which are unable to be deleted a lot of people will always see the need to commit the vendor folder

提交回复
热议问题