mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
92723661d0
This is the initial implementation of the parser/decoder portion of the new dependency lock file handler. It's currently dead code because the caller isn't written yet. We'll continue to build out this functionality here until we have the basic level of both load and save functionality before introducing this into the provider installer codepath.
23 lines
1.3 KiB
Go
23 lines
1.3 KiB
Go
// Package depsfile contains the logic for reading and writing Terraform's
|
|
// dependency lock and development override configuration files.
|
|
//
|
|
// These files are separate from the main Terraform configuration files (.tf)
|
|
// for a number of reasons. The first is to help establish a distinction
|
|
// where .tf files configure a particular module while these configure
|
|
// a whole configuration tree. Another, more practical consideration is that
|
|
// we intend both of these files to be primarily maintained automatically by
|
|
// Terraform itself, rather than by human-originated edits, and so keeping
|
|
// them separate means that it's easier to distinguish the files that Terraform
|
|
// will change automatically during normal workflow from the files that
|
|
// Terraform only edits on direct request.
|
|
//
|
|
// Both files use HCL syntax, for consistency with other files in Terraform
|
|
// that we expect humans to (in this case, only occasionally) edit directly.
|
|
// A dependency lock file tracks the most recently selected upstream versions
|
|
// of each dependency, and is intended for checkin to version control.
|
|
// A development override file allows for temporarily overriding upstream
|
|
// dependencies with local files/directories on disk as an aid to testing
|
|
// a cross-codebase change during development, and should not be saved in
|
|
// version control.
|
|
package depsfile
|