我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

提交Gopkg.lock文件安全吗?

I am new to Go and was wondering whether it's safe to commit the Gopkg.lock file in a VCS?

Yes, you should commit it. This file makes much less sense if everybody has his own version.

It makes the build reproducible from one developer to another, and more importantly it ensures the deployment build environnment won't use an unexpected set of dependency versions.

近期文章

  • “ i。(string)”在golang语法中实际上意味着什么? [重复]
  • 轮询功能的惯用方式,直到确定!= true
  • 遍历数组的更干净方法+从值创建字符串
  • 获得Golang字符串的最后一个X字符哪个更好?
  • Golang布尔标志解析限制
  • 检查符文是否在基本多语言平面中的正确方法是什么?
  • 在Golang中从stdin读取输入
  • 选择Golang Docker基本映像
  • 参数中使用的slice vs map
  • 前往:如何处理库API更改?
  • 同时遍历两个集合
  • 如何比较Go模板中的字符串?
  • 在Go中将uint16强制转换为int16的正确方法
  • 复制数组(无大小)
  • 如何大写JSON数组中的所有键?
  • Golang优雅地JSON解码不同的结构
  • 如何返回一个空的io.Reader?
  • linter发出的goconst警告
  • GoLang中的HTML部分
  • 去哪里记录错误

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华