知识卡片
依赖声明包含外部工具
构建依赖若随环境变化,可能使相同代码产生不同结果。应明确声明与隔离库依赖,也考虑外部命令是否存在及其版本,而不是假设每台机器都有兼容的工具。Go模块管理解决一部分依赖问题,不能自动固定编译工具链、系统工具及全部运行输入。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- It’s All About Dependability · 查看原书依据
But what if a dependency — an imported code package or installed system tool beyond the programmer’s control — changes in such a way that it breaks the build, introduces a bug, or becomes incompatible with the service? Most programming languages offer a packaging system for distributing support libraries, and Go is no different12. By
参考来源
- 位置:《Cloud Native Go》第06章《It’s All About Dependability》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch06.xhtml)
- 结论依据:构建依赖若随环境变化,可能使相同代码产生不同结果。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。
- 原始内容:But what if a dependency — an imported code package or installed system tool beyond the programmer’s control — changes in such a way that it breaks the build, introduces a bug, or becomes incompatible with the service? Most programming languages offer a packaging system for distributing support libraries, and Go is no different12. By