依赖管理规范:go.mod 的正确用法
Go 依赖管理不依赖独立的 lock 文件:go.mod 的 require 列表本身就是构建清单,版本选择由 MVS(Minimal Version Selection,最小版本选择)算法决定。给定同样的 go.mod,构建列表恒定一致,因此不需要 package-lock.json 这类锁文件。把 go.sum 误解为"应当被 ignore 的锁文件",是围绕这套机制最常见的错误。
9 min read
Loading…
Quote of the day · October 26 · 关于意义 · Rick and Morty
Nobody exists on purpose. Nobody belongs anywhere. Everybody's gonna die. Come watch TV?
Notes on Agent runtimes — design decisions laid open: why it is this way, what it costs, and when it stops being true.