github.com/kevinklinger/open_terraform@v1.3.6/noninternal/depsfile/doc.go (about) 1 // Package depsfile contains the logic for reading and writing Terraform's 2 // dependency lock and development override configuration files. 3 // 4 // These files are separate from the main Terraform configuration files (.tf) 5 // for a number of reasons. The first is to help establish a distinction 6 // where .tf files configure a particular module while these configure 7 // a whole configuration tree. Another, more practical consideration is that 8 // we intend both of these files to be primarily maintained automatically by 9 // Terraform itself, rather than by human-originated edits, and so keeping 10 // them separate means that it's easier to distinguish the files that Terraform 11 // will change automatically during normal workflow from the files that 12 // Terraform only edits on direct request. 13 // 14 // Both files use HCL syntax, for consistency with other files in Terraform 15 // that we expect humans to (in this case, only occasionally) edit directly. 16 // A dependency lock file tracks the most recently selected upstream versions 17 // of each dependency, and is intended for checkin to version control. 18 // A development override file allows for temporarily overriding upstream 19 // dependencies with local files/directories on disk as an aid to testing 20 // a cross-codebase change during development, and should not be saved in 21 // version control. 22 package depsfile