<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Version Management on SRE Engineering Practice</title><link>https://www.sre.wang/en/tags/version-management/</link><description>Recent content in Version Management on SRE Engineering Practice</description><image><title>SRE Engineering Practice</title><url>https://www.sre.wang/share-card-square.jpg</url><link>https://www.sre.wang/share-card-square.jpg</link></image><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 13 Nov 2026 10:53:44 +0800</lastBuildDate><atom:link href="https://www.sre.wang/en/tags/version-management/index.xml" rel="self" type="application/rss+xml"/><item><title>Local Plan Says No Changes, CI Wants to Rebuild 37 Resources: 5 Gates for Pinning Terraform Dependency Versions</title><link>https://www.sre.wang/en/posts/terraform-dependency-version-lock/</link><pubDate>Fri, 13 Nov 2026 10:53:44 +0800</pubDate><guid>https://www.sre.wang/en/posts/terraform-dependency-version-lock/</guid><description>Same code, same state, same cloud account: terraform plan on my laptop says `No changes`, yet CI wants to replace 37 resources, 9 of them database instances and their security groups. The code was innocent. Three dependency layers were not: a stale provider cached inside the CI image, a terraform.lock.hcl carrying only darwin_arm64 checksums, and a module pinned at `~&amp;gt; 2.0` that drifted ten minor versions under `init -upgrade`. This article breaks down how dependency drift stays invisible — passing fmt, validate, unit tests and code review while quietly computing a different plan — and lays out the five gates I now enforce: patch-level provider constraints, a committed lock file with multi-platform hashes, exact module versions, a pinned Terraform core, and a reproducibility check backed by a change budget. Includes a provider major-upgrade rehearsal runbook, before/after numbers from 90 root modules, and the extra work offline and mirrored environments demand.</description></item></channel></rss>