| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:2e1c635c-9220-e8be-f96b-65e5e51ac870 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AE18:2652DC:21C876B:2B0F689:6B01657A |
| html-safe-nonce | 382e0d046b7e70a64abd97d345df1bb0d120b0ed0fd5ec89a9d609a0c4334d82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTE4OjI2NTJEQzoyMUM4NzZCOjJCMEY2ODk6NkIwMTY1N0EiLCJ2aXNpdG9yX2lkIjoiMTg0NjM3OTQxODQxMTQyNzE5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 34be46862816f7024a97f3b49610bc2f120ccac73f0edba0a391f713dea22f79 |
| hovercard-subject-tag | pull_request:2943504009 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/20451/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/54065010354fbf71a7fdb29ae3bdb712fe1ba8514c25d34aa33ae7e03462d3d6/coder/coder/pull/20451 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54065010354fbf71a7fdb29ae3bdb712fe1ba8514c25d34aa33ae7e03462d3d6/coder/coder/pull/20451 |
| og:image:alt | Summary
Fixes #18237
This PR detects when .terraform.lock.hcl is modified during terraform init and warns users with a concise message and the exact command to fix the issue.
Problem
When users run... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mtojek |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/coder/coder/pull/20451#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20451 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20451 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder |
| Reload | https://github.com/coder/coder/pull/20451 |
| Reload | https://github.com/coder/coder/pull/20451 |
| Reload | https://github.com/coder/coder/pull/20451 |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues320 (320) | https://github.com/coder/coder/issues |
| Pull requests470 (470) | https://github.com/coder/coder/pulls |
| Discussions | https://github.com/coder/coder/discussions |
| Actions | https://github.com/coder/coder/actions |
| Projects | https://github.com/coder/coder/projects |
| Security and quality49 (49) | https://github.com/coder/coder/security |
| Insights | https://github.com/coder/coder/insights |
| https://github.com/coder/coder |
| mtojek | https://github.com/mtojek |
| main | https://github.com/coder/coder/tree/main |
| 18237-terraform-lock-modified | https://github.com/coder/coder/tree/18237-terraform-lock-modified |
| Conversation | https://github.com/coder/coder/pull/20451 |
| Commits6 (6) | https://github.com/coder/coder/pull/20451/commits |
| Checks | https://github.com/coder/coder/pull/20451/checks |
| Files changed | https://github.com/coder/coder/pull/20451/files |
| feat(provisioner): warn when .terraform.lock.hcl is modified during init | https://github.com/coder/coder/pull/20451#top |
| mtojek | https://github.com/mtojek |
| main | https://github.com/coder/coder/tree/main |
| 18237-terraform-lock-modified | https://github.com/coder/coder/tree/18237-terraform-lock-modified |
|
| https://github.com/mtojek |
| mtojek | https://github.com/mtojek |
| Oct 24, 2025 | https://github.com/coder/coder/pull/20451#issue-3548103487 |
| #18237 | https://github.com/coder/coder/issues/18237 |
| #18280 | https://github.com/coder/coder/pull/18280 |
| Please reload this page | https://github.com/coder/coder/pull/20451 |
| mtojek | https://github.com/mtojek |
| October 24, 2025 07:18 | https://github.com/coder/coder/pull/20451#commits-pushed-763c784 |
|
| https://github.com/mtojek |
| feat(provisioner): warn when .terraform.lock.hcl is modified during init | https://github.com/coder/coder/pull/20451/commits/763c784b8e0f62e34977e31f8e7fcc46816915a0 |
| 763c784 | https://github.com/coder/coder/pull/20451/commits/763c784b8e0f62e34977e31f8e7fcc46816915a0 |
| #18237 | https://github.com/coder/coder/issues/18237 |
|
| https://github.com/mtojek |
| feat(provisioner): warn when .terraform.lock.hcl is modified during init | https://github.com/coder/coder/pull/20451/commits/d533f179244cd77449f22e2af7c1ef90ece834e2 |
| d533f17 | https://github.com/coder/coder/pull/20451/commits/d533f179244cd77449f22e2af7c1ef90ece834e2 |
| #18237 | https://github.com/coder/coder/issues/18237 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| mtojek | https://github.com/mtojek |
| Oct 24, 2025 | https://github.com/coder/coder/pull/20451#event-20475900518 |
| mtojek | https://github.com/mtojek |
| October 24, 2025 10:08 | https://github.com/coder/coder/pull/20451#commits-pushed-ba91613 |
|
| https://github.com/mtojek |
| Marcin's fixes | https://github.com/coder/coder/pull/20451/commits/ba9161398eab9ddc8990899aa8b53a465c79e191 |
| ba91613 | https://github.com/coder/coder/pull/20451/commits/ba9161398eab9ddc8990899aa8b53a465c79e191 |
|
| https://github.com/mtojek |
| test: fix TestChecksumFileCRC32 to match updated function signature | https://github.com/coder/coder/pull/20451/commits/e36f44acafd7bd825e9124ce7ab9da17be774d1c |
| e36f44a | https://github.com/coder/coder/pull/20451/commits/e36f44acafd7bd825e9124ce7ab9da17be774d1c |
| https://github.com/mtojek |
| mtojek | https://github.com/mtojek |
|
Oct 24, 2025
| https://github.com/coder/coder/pull/20451#pullrequestreview-3375036788 |
|
View reviewed changes
| https://github.com/coder/coder/pull/20451/files/e36f44acafd7bd825e9124ce7ab9da17be774d1c |
| provisioner/terraform/executor_internal_test.go | https://github.com/coder/coder/pull/20451/files/e36f44acafd7bd825e9124ce7ab9da17be774d1c#diff-82fd4ea111f5cfff1f505c3f67e75adf0cce11af90956c1594c23511989b012d |
| Please reload this page | https://github.com/coder/coder/pull/20451 |
| provisioner/terraform/executor_internal_test.go | https://github.com/coder/coder/pull/20451/files/e36f44acafd7bd825e9124ce7ab9da17be774d1c#diff-82fd4ea111f5cfff1f505c3f67e75adf0cce11af90956c1594c23511989b012d |
| Please reload this page | https://github.com/coder/coder/pull/20451 |
| provisioner/terraform/executor_internal_test.go | https://github.com/coder/coder/pull/20451/files/e36f44acafd7bd825e9124ce7ab9da17be774d1c#diff-82fd4ea111f5cfff1f505c3f67e75adf0cce11af90956c1594c23511989b012d |
| Please reload this page | https://github.com/coder/coder/pull/20451 |
| mtojek | https://github.com/mtojek |
| October 24, 2025 08:17 | https://github.com/coder/coder/pull/20451#commits-pushed-90cb93b |
|
| https://github.com/mtojek |
| test: address code review feedback | https://github.com/coder/coder/pull/20451/commits/90cb93be1a4ce48bc40cb67bacab9f993b61b5c0 |
| 90cb93b | https://github.com/coder/coder/pull/20451/commits/90cb93be1a4ce48bc40cb67bacab9f993b61b5c0 |
|
| https://github.com/mtojek |
| fmt: use modern octal notation (0o600 instead of 0600) | https://github.com/coder/coder/pull/20451/commits/e4f4f35a005deb1245ee253563b51e8d555342a9 |
| e4f4f35 | https://github.com/coder/coder/pull/20451/commits/e4f4f35a005deb1245ee253563b51e8d555342a9 |
| https://github.com/mtojek |
| mtojek | https://github.com/mtojek |
| October 24, 2025 08:32 | https://github.com/coder/coder/pull/20451#event-20476913494 |
| https://github.com/mtojek |
| mtojek | https://github.com/mtojek |
| johnstcn | https://github.com/johnstcn |
| October 24, 2025 08:32 | https://github.com/coder/coder/pull/20451#event-20476915485 |
| https://github.com/johnstcn |
| johnstcn | https://github.com/johnstcn |
|
Oct 24, 2025
| https://github.com/coder/coder/pull/20451#pullrequestreview-3375141193 |
|
View reviewed changes
| https://github.com/coder/coder/pull/20451/files/e4f4f35a005deb1245ee253563b51e8d555342a9 |
| https://github.com/mtojek |
| mtojek | https://github.com/mtojek |
| 40e1784 | https://github.com/coder/coder/commit/40e1784846b6e2a847db03b6a23c867a4027cd97 |
| Oct 24, 2025 | https://github.com/coder/coder/pull/20451#event-20477213916 |
| https://github.com/mtojek |
| mtojek | https://github.com/mtojek |
| October 24, 2025 08:44 | https://github.com/coder/coder/pull/20451#event-20477215311 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Oct 24, 2025 | https://github.com/coder/coder/pull/20451#event-20477219407 |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F20451 |
|
| https://github.com/johnstcn |
|
johnstcn
| https://github.com/johnstcn |
|
| https://github.com/coder/coder/pull/20451/files/e4f4f35a005deb1245ee253563b51e8d555342a9 |
| Please reload this page | https://github.com/coder/coder/pull/20451 |
|
| https://github.com/mtojek |
|
mtojek
| https://github.com/mtojek |
|
Warn if your .terraform.lock.hcl is modified after running terraform init
| https://github.com/coder/coder/issues/18237 |
| Please reload this page | https://github.com/coder/coder/pull/20451 |
|
| https://github.com/mtojek |
|
| https://github.com/johnstcn |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |