知识卡片

普通读书笔记卡 · 3052.a.1

依赖打包与锁定

理解等级:中级

固定依赖可把下载的依赖文件随构建打包,或在构建阶段解析直接及传递依赖并写入版本锁文件。前者分发真实内容,后者分发精确版本约束;两者都应与构建一起保存。合规审计需要的依赖版本、测试和变更轨迹由此成为交付过程的自然产物。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 构建与分发基础设施代码 · 查看原书依据

      A build once, deploy many workflow involves resolving versions of build-time dependencies once and ensuring that the same versions are used every time the build is deployed. A simple way to ensure this is to download the dependency files and bundle them with the code

    参考来源

    - 位置:《Infrastructure As Code》第15章《构建与分发基础设施代码》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch15.html) - 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“固定依赖可把下载的依赖文件随构建打包,或在构建阶段解析直接及传递依赖并写入版本锁文件”这一核心结论;正文的用途与边界据同小节后续论述整理。 - 原始内容:A build once, deploy many workflow involves resolving versions of build-time dependencies once and ensuring that the same versions are used every time the build is deployed. A simple way to ensure this is to download the dependency files and bundle them with the code